Page 1 of 1

If Statements

Posted: Thu Apr 16, 2015 9:10 pm
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

Re: If Statements

Posted: Fri Apr 17, 2015 6:47 am
by Alex K.
Hello,

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

Thank you.

Re: If Statements

Posted: Fri Apr 17, 2015 4:08 pm
by drp1994
Thanks for the quick Response. This was exactly what I was looking for.

Re: If Statements

Posted: Mon Apr 20, 2015 3:57 am
by Andrew
Hello,

Great! Thank you for letting us know about this.