03-16-2017 10:05 AM
Hi,
Need help on if condition in script.
If condition not working in script
/: if &VAR& NE '0.00'.
/:fill.
/:else.
/:fill.
/:endif.
03-16-2017 9:47 PM
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?
03-17-2017 7:57 AM
03-17-2017 5:55 PM
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.
03-20-2017 8:09 AM
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.... 😉