Was this helpful?
Variables in Expressions
You can use simple variables alone or in expressions. In the following example, the age variable appears alone on the left side and is an element in the expression “age + 1” on the right of the assignment statement:
age = age + 1;
OpenROAD uses the current value of age to compute a new value that replaces the current value.
You can use the simple variables that are elements of reference or array variables in the same way, for example:
total = 0;
i = 1;
while i <= emptable.LastRow do
    total = total + emptable[i].salary;
    i = i + 1;
endwhile;
In this example, the value in the salary column from the emptable table field is added to the total field as part of a while loop.
Last modified date: 06/25/2024