Skip to main content
Skip table of contents

Variable name

Features

  • Variable is used to express the data value and can consist of letters, numbers, and underscores (_). The first character cannot be a number.
  • Letters are case sensitive.
  • An error occurs if the variable name is the same as a reserved word or interpreter internal function name.

To avoid this, use the function name as using the prefix "var _", if possible.


Caution

Never use the following reserved words as variable names or function names.

and

assert

break

class

continue

def

del

elif

else

except

exec

finally

for

from

global

if

import

in

is

lambda

list

not

open

or

pass

print

raise

return

try

while

with

yield

select

 

 

Example

PY
friend = 10
Friend = 1
_myFriend = None

Pass = 10 # Syntax error
movej = 0 # movej is a DRL instruction name and should not be used as a variable.
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.