I want to write multiple if statements in assign.  The contents I want to write are as follows.

Returns true if x=1.  In the case of false, judge whether x=2 is true, and if true, true.  Otherwise, I want to write a process that returns false in one sentence.

It may not be written correctly because you are not familiar with the program.  However, the image is as follows.

if x=1 true

else  if x=2  true 

else exit.

Someone tell me.

Solution

Hi,

using the condition If(condition, Value_If_True, Value_If_False)

If( x=1, true, If( x=2, true, EXIT))

or

IF (X=1 or X=2, True, EXIT)

Cheers


Solution

Hi,

try using the condition If(id="text",True,False)


If(<condition>, True, False)

Also, Condition can be written as:

if(Paymentmode.label = "Invoice" OR Paymentmode.label  = "Cheque", "String1", "String2")

Hope, This helps

Mahesh Manchala wrote:

Hi,

try using the condition If(id="text",True,False)


If(<condition>, True, False)

Also, Condition can be written as:

if(Paymentmode.label = "Invoice" OR Paymentmode.label  = "Cheque", "String1", "String2")

Hope, This helps

thanks to you,it is resolved.

thank you.

 

 

Miguel Verdasca wrote:

Hi,

using the condition If(condition, Value_If_True, Value_If_False)

If( x=1, true, If( x=2, true, EXIT))

or

IF (X=1 or X=2, True, EXIT)

Cheers


 thanks to you,it is resolved.

thank you.

 

You're welcome

NANA wrote:

Miguel Verdasca wrote:

Hi,

using the condition If(condition, Value_If_True, Value_If_False)

If( x=1, true, If( x=2, true, EXIT))

or

IF (X=1 or X=2, True, EXIT)

Cheers


 thanks to you,it is resolved.

thank you.

 

 I'm glad to help you.
Cheers NANA