| << | >> |
if, else, end
Syntax
if <condition>
<statement1>
else
<statement2>
end
Description
Use if to implement a conditional statement.
The condition statement must be bool type. Otherwise, the condition is ill-formed.
When <condition> evaluates to true, <statement1> executes.
If <condition> is false, <statement2> executes.
Example:
if tau>45ns mwpulse 200 ns else wait 200 ns end
| << | >> |