Correct UiPath Variable Names

Question: Which of the following is a valid UiPath variable name?

  •   $1000000
  •   1000000$
  •   1milliondollars
  •   One1MillionDollars


Only One1MillionDollars would qualify as a correct answer to the UiPath mock exam question.

Correct UiPath Variable Names

Get familiar with this RegEx expression. It’s what’s used by the UiPath Analyzer. ([A-Z]|[a-z])+([A-Z]|[a-z]|[0-9]). That’s all you really need to know.

A variable name complies with this RegEx rule if it starts with any upper or lower case letter and is then followed by another upper or lower case letter. Any number of numbers and letters can come after that.

A correct UiPath varaible name can have letters and numbers. Special characters like $ are not allowed. Nor can a variable have a number in the first two letters.

One1MillionDollars is the only UiPath variable name that passes muster on this UiPath Associate mock exam question.

Please subscribe to Cameron's YouTube channel