Skip to Content
avatar image
-4
Former Member

IF condition in Script

Hi,

Need help on if condition in script.

If condition not working in script

/: if &VAR& NE '0.00'.

/:fill.

/:else.

/:fill.

/:endif.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Mar 16, 2017 at 09: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?

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 17, 2017 at 07:57 AM

    Fullstops.

    Sapscript commands are not terminated with full stops.

    Add comment
    10|10000 characters needed characters exceeded

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