PDA

View Full Version : Permitted chars in variable name?



apps
03-24-2009, 09:55 AM
I found that I can't name a variable
1variablename, that is, can't use a number as first letter.

Is there any reference for permitted combinations in variable names?

Guerric
03-25-2009, 07:10 PM
Not to my knowledge. You can try searching through:
http://wiki.developer.mindtouch.com/DekiScript

Otherwise steve would know best. If I had to guess, the conventions are probably similar to that of any programming/scripting language. No funky chars (@#R&$(*), no operators, and variables must start with a non-numerical char.

SteveB
04-03-2009, 03:47 PM
Variables must begin with a letter or underscore and can then be followed by letters, underscores, and digits.