Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

IF condition in Script

Former Member
0 Likes
999

Hi,

Need help on if condition in script.

If condition not working in script

/: if &VAR& NE '0.00'.

/:fill.

/:else.

/:fill.

/:endif.

4 REPLIES 4
Read only

Jelena_Perfiljeva
Active Contributor
807

Not sure what answers are you expecting with so little information provided... What have you tried so far to troubleshoot this? Care to post any factual evidence, like a debugger screenshot showing the value of &VAR& or whatever "fill" is?

Read only

Former Member
807

Fullstops.

Sapscript commands are not terminated with full stops.

Read only

0 Likes
807

I'm assuming you meant dots. This is correct but I believe it works either way. Just checked in one of our SAPScripts and it has commands with and without a dot at the end. Although maybe it actually does not work and we just don't know. 🙂

Still would be nice of OP to add more info.

Read only

0 Likes
807

I worked on a project and it was obvious they had only tested the default scenario because every sapscript command was terminated with a dot, fullstop, period or whatever you'd like to call it. We made our changes which didn't work because they were in the middle of all this and we then had put right the existing stuff....

I would check the 'we just don't know' scenario.... 😉