Page 1 of 1

Correct syntax for And

Posted: Mon Nov 13, 2006 8:53 am
by Greg Perkins
Thanks for the advice, works well.

I am new to scripting so please bear with me, I want to add an And statement to the script but don’t know the correct format.

If I could add …… and Qtynumber >0……. Then if the Qtynumber field has not been set the script is ignored.



My script at present is

------------------------------------------------------------------------------------



If Staux000-> Qtynumber > Quantity

Return FALSE

Endif

Echo Quantity break price applied

Return Staux000->J

Posted: Mon Nov 13, 2006 8:54 am
by COBS Tech Support
The correct syntax is .AND.

E.g.,

If Staux000-> Qtynumber > Quantity .And. Staux000->Qtynumber > 0