[WebDNA] Friday Fun with Variable Names

This WebDNA talk-list message is from

2017


It keeps the original formatting.
numero = 113436
interpreted = N
texte = 1030 Since it=E2=80=99s Friday afternoon, I decided to spend some time and = see if my assumptions match what WebDNA actually does, specifically = concerning variable names: ~~~ ALL OF THESE WORK: ~~~ [text]var1=3Dstring[/text] [var1]
[text]2var=3Dnumber[/text] [2var]
[text]_var=3D1_1[/text] [_var]
[text]-var=3D1-1[/text] [-var]
[text]*var=3D1*1[/text] [*var]
[text]@var=3D1@1[/text] [@var]
[text]$var=3D1$1[/text] [$var]
[text]#var=3D1#1[/text] [#var]
[text]~var=3D1~1[/text] [~var]
[text]%var%=3D1%1[/text] [%var%]
[text]&var=3D1&1[/text] [&var]
[text](var)=3D1()1[/text] [(var)]
[text]MA@var=3Dma@11[/text] [MA@var]
[text]MA:var=3Dma:11[/text] [MA:var]
[text].var=3D1.1[/text] [.var]
[text]:var=3D1:1[/text] [:var]
~~ DOESN=E2=80=99T WORK (scoping issue) ~~~ [text]::var=3D1::1[/text] [::var]
~~~ YES ~~~ [math show=3Df]mvar1=3D1[/math] [mvar1]
[math][mvar1][/math]
~~~ NO ~~~ [math show=3Df]2mvar=3D2[/math] [2mvar]
[math][2mvar][/math]
[math show=3Df]*mvar=3D3[/math] [*mvar]
[math][*mvar][/math]
[math show=3Df]@mvar=3D4[/math] [@mvar]
[math][@mvar][/math]
[math show=3Df]$mvar=3D5[/math] [$mvar]
[math][$mvar][/math]
[math show=3Df]#mvar=3D6[/math] [#mvar]
[math][#mvar][/math]
[math show=3Df]:mvar=3D7[/math] [:mvar]
[math][:mvar][/math]
~~~ and the big surprise: (YES) ~~~ [text]$price=3D5.00[/text] [text]*qty=3D10[/text] [math][$price]*[*qty][/math] -BBB --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Friday Fun with Variable Names (christophe.billiottet@webdna.us 2017)
  2. [WebDNA] Friday Fun with Variable Names (Brian Burton 2017)
1030 Since it=E2=80=99s Friday afternoon, I decided to spend some time and = see if my assumptions match what WebDNA actually does, specifically = concerning variable names: ~~~ ALL OF THESE WORK: ~~~ [text]var1=3Dstring[/text] [var1]
[text]2var=3Dnumber[/text] [2var]
[text]_var=3D1_1[/text] [_var]
[text]-var=3D1-1[/text] [-var]
[text]*var=3D1*1[/text] [*var]
[text]@var=3D1@1[/text] [@var]
[text]$var=3D1$1[/text] [$var]
[text]#var=3D1#1[/text] [#var]
[text]~var=3D1~1[/text] [~var]
[text]%var%=3D1%1[/text] [%var%]
[text]&var=3D1&1[/text] [&var]
[text](var)=3D1()1[/text] [(var)]
[text]MA@var=3Dma@11[/text] [MA@var]
[text]MA:var=3Dma:11[/text] [MA:var]
[text].var=3D1.1[/text] [.var]
[text]:var=3D1:1[/text] [:var]
~~ DOESN=E2=80=99T WORK (scoping issue) ~~~ [text]::var=3D1::1[/text] [::var]
~~~ YES ~~~ [math show=3Df]mvar1=3D1[/math] [mvar1]
[math][mvar1][/math]
~~~ NO ~~~ [math show=3Df]2mvar=3D2[/math] [2mvar]
[math][2mvar][/math]
[math show=3Df]*mvar=3D3[/math] [*mvar]
[math][*mvar][/math]
[math show=3Df]@mvar=3D4[/math] [@mvar]
[math][@mvar][/math]
[math show=3Df]$mvar=3D5[/math] [$mvar]
[math][$mvar][/math]
[math show=3Df]#mvar=3D6[/math] [#mvar]
[math][#mvar][/math]
[math show=3Df]:mvar=3D7[/math] [:mvar]
[math][:mvar][/math]
~~~ and the big surprise: (YES) ~~~ [text]$price=3D5.00[/text] [text]*qty=3D10[/text] [math][$price]*[*qty][/math] -BBB --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us . Brian Burton

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

[WebDNA] max in a search (2009) Help name our technology! I found it (1997) Multiple Carts with Mac IE (2002) Opinion: [input] should be called [output] ... (1997) Fwd: FW: Returned mail: you are not authorized to releasequeueson this server (2000) Sorting LISTFILES (1997) GuestBook example (1997) values being mis-placed in results (2000) PCS Frames (1997) [CART] inside a [LOOP] (1997) Frames and WebCat (1997) show if date < expiry date (small corrections) (2002) WebCat2b13MacPlugin - [math][date][/math] problem (1997) [WebDNA] Bug in 6.2? (2009) 5.0 Pricing (2003) Calendar (1997) Problems with shopping cart (1997) U&P IIS concept (1998) Shipping formula problem (1997) Comments in db? (1997)