Application Development 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: 

IF condition in Script

former_member194965
Active Participant
0 Kudos

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

Jelena
Active Contributor

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?

former_member182550
Active Contributor

Fullstops.

Sapscript commands are not terminated with full stops.

0 Kudos

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.

0 Kudos

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.... 😉