on 08-27-2008 4:28 AM
hi experts,
i need to work based on if condition in script layout. but its not working.
can some one please give some sample code to work with IF...ELSE..conditions in script layout.
thanks in advance.
Hi mytri,
Here is the Example.
/: DEFINE &VAR1& = 'M'.
/: IF &var1& = 'M'
The Letter is M
/: ELSE
The letter is other than M
/: ENDIF.
Allot points if this is usefull.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
guys thanks a lot....
problem solved...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mytri,
IF is used for conditional printing of the text in the output.
The conditional operators that can be used are as follows
= EQ ,< LT,> GT,<= LE ,>= GE,<> NE,
Logical operators: NOT, AND, OR
Example:
/: IF &NAME& = u2019ROBERTu2019
He is ROBERT.*
/: ELSEIF &NAME& = u2019JOHNu2019
He is JOHN.*
/: ELSE Who is he? &NAME&
/: ENDIF
Regards,
Chandra Sekhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.