If Statements

Stimulsoft Ultimate discussion
Post Reply
drp1994
Posts: 9
Joined: Wed Jun 04, 2014 7:32 pm

If Statements

Post by drp1994 »

i am attempting to set up a formula with the following if statement. I know that StimulSoft does not use the actual Words for "And" and "or" Can you please let me know which keyboard symbols are used in the place of "and" in the below statement.

_lcCustPn == "Internal" and rptInvoiceFormWM.CustPartNo ==""
?rptInvoiceFormWM.PartNO+" "+rptInvoiceFormWM.Rev
:_lcCustPn == "Internal" and rptInvoiceFormWM.CustPartNo !=""
?rptInvoiceFormWM.CustPartNo+" "+rptInvoiceFormWM.CustRev
:rptInvoiceFormWM.PartNO+" "+rptInvoiceFormWM.Rev
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: If Statements

Post by Alex K. »

Hello,

Please try to use the following operators:
&& - and
|| - or
https://msdn.microsoft.com/en-us/library/6a71f45d.aspx

Thank you.
drp1994
Posts: 9
Joined: Wed Jun 04, 2014 7:32 pm

Re: If Statements

Post by drp1994 »

Thanks for the quick Response. This was exactly what I was looking for.
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Re: If Statements

Post by Andrew »

Hello,

Great! Thank you for letting us know about this.
Post Reply