Variable Operations - Examples             How to use?

 

Example 1: To use yesterday's date as a variable.

  1. Open the Variable Manager from Tools->Variable Manager
  2. Click on 'Add new variable'.
  3. Set the variable type as 'Value', specify a name for the variable lets say 'yesterday' and enter 1 as a value. ( This shall be the temporary value.)
  4. Now open the Task Editor from Tools->Task Editor.
  5. Double click on 'Variable Operations'
  6. On the left hand side of the 'equal to' sign, press F2 and select the variable that you created from the list.
  7. On the right hand side of the 'equal to' sign, press F2 and select the system variable date and click insert.
  8. Type '-1' after $Date$.
  9. Click 'Save' button.

Example 2: To convert the value of a variable into thousands.

  1. Open the Task Editor from Tools->Task Editor.
  2. Double click on 'Variable Operations'
  3. On the left hand side of the 'equal to' sign, press F2 and insert the variable whose value you want to convert into thousands.
  4. On the right hand side of the 'equal to' sign, press F2 and again insert the varible whose value you want to convert in to thousands.
  5. Type '/ 1000' after the variable
  6. Click 'Save' button.

Example 3: To increment the value of a variable by 1 without using $Counter$.

  1. Open the Task Editor from Tools->Task Editor.
  2. Double click on 'Variable Operations'.
  3. On the left hand side of the 'equal to' sign, press F2 and insert the variable whose value you want to increment by 1.
  4. On the right hand side of the 'equal to' sign, press F2 and again insert the varible whose value you want to increment by 1.
  5. Type '+1' after the variable
  6. Click 'Save' button.