Skip to main content
Inspiring
July 30, 2022
Answered

How do I put a number into an expression variable name?

  • July 30, 2022
  • 1 reply
  • 291 views

Is there a way for me to have a variable called 2A, something like in the following script?

Example:

Var 2A = 5000

 

ot can only letters be used in naming?

Example:

Var twoA = 5000

 

Thanks for any clarification on this 🙂

This topic has been closed for replies.
Correct answer Dan Ebberts

A variable name can have a number, it just can't start with a number. It has to start with a letter or an underscore. So you could use _2A, but not 2A.

1 reply

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
July 30, 2022

A variable name can have a number, it just can't start with a number. It has to start with a letter or an underscore. So you could use _2A, but not 2A.

persystAuthor
Inspiring
August 1, 2022

Ah perfect, thanks for letting me know Dan!