Skip to Content
-4

IF condition in Script

Mar 16, 2017 at 10:05 AM

118

avatar image
Former Member

Hi,

Need help on if condition in script.

If condition not working in script

/: if &VAR& NE '0.00'.

/:fill.

/:else.

/:fill.

/:endif.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Jelena Perfiljeva
Mar 16, 2017 at 09:47 PM
2

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?

Share
10 |10000 characters needed characters left characters exceeded
Richard Harper Mar 17, 2017 at 07:57 AM
1

Fullstops.

Sapscript commands are not terminated with full stops.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

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

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.... ;-)

0