on 08-26-2008 4:51 PM
Hi experts
data var type i value 10. defined in print program,
i wrote a text element in scrpt form
/E ELE
/: IF &VAR& EQ 10
welcome
/: ELSE
bye
/:ENDIF
called in write_form
Output : bye
why it executes else part, please help me
thanks
sitaram
Hi Change your code to the following.
/E ELE
/: IF &VAR& = '10'
welcome
/: ELSE
bye
/:ENDIF
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Replace 'bye' with &VAR& to see what the sapscript if receiving. Your IF logic looks good to me, so I'm thinking there's an issue with the print program. Is var a global data element?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
change /: IF &VAR& EQ 10 to
/: IF &VAR& EQ '10'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
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.