Variable Operations -
Examples
How to
use?
Example 1:
To use yesterday's date as a
variable.
- Open the Variable Manager from Tools->Variable Manager
- Click on 'Add new
variable'.
- 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.)
- Now open the Task
Editor from Tools->Task Editor.
- Double click on 'Variable
Operations'
- On the left hand side of the 'equal
to' sign, press F2 and select the variable that you created from the
list.
- On the right hand side of the
'equal to' sign, press F2 and select the system variable date and click
insert.
- Type '-1' after $Date$.
- Click 'Save' button.
Example 2: To convert the value of a variable into
thousands.
- Open the Task Editor from
Tools->Task Editor.
- Double click on 'Variable
Operations'
- On the left hand side of the 'equal to' sign, press F2 and insert the variable whose
value you want to convert into thousands.
- 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.
- Type '/ 1000' after the variable
- Click 'Save' button.
Example 3: To increment the value of a variable by 1
without using $Counter$.
- Open the Task Editor from
Tools->Task Editor.
- Double click on 'Variable
Operations'.
- On the left hand side of the 'equal
to' sign, press F2 and insert the variable whose value you want to
increment by 1.
- 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.
- Type '+1' after the variable
- Click 'Save' button.