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: 

Multi Line IF condition in Script Editor

Former Member
0 Kudos
180

Hi

I have a IF condition like this.

/: IF bwart = '301' and bwart = '303' and bwart = '304' and bwart = '305' and bwart = '306'

  • ----

  • ----

/: endif

Like this , I have many AND conditions in the IF.

But , In Script Editor , It is allowing only 72 characters.

I extended this SHIFT-F8 to get more characters.

Even, My IF condition is not fitting in one line.

How to write this IF in Script

Thanks

4 REPLIES 4

Former Member
0 Kudos
145

This message was moderated.

Former Member
0 Kudos
145

Hi,

to overcome this, better to call external subroutine from script editor and mention ur conditions in the external program and check it with flag or any other option...

regards,

Naveen

Former Member
0 Kudos
145

Hi,

Chage the Script editor into document editor by clicking Goto--->change Editor and type as you like. I was also faced same problem like this.

Former Member
0 Kudos
145

Hi,

Instead of this you can write you if statment like this..

/: IF bwart = '301' and bwart = '303' and bwart = '304' and bwart = '305' and bwart = '306'
* ----
* ----
/: endif

Write this way ..

/: IF '301,303,304,305,306' CS bwart.
* ----
* ----
/: endif

Or you can change the script editor to document editor and write your code.