Correct syntax for And
  • Greg Perkins
    Correct syntax for And

    by Greg Perkins » Mon Nov 13, 2006 8:53 am

    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
  • COBS Tech Support
    Posts:683
    Joined:Fri Sep 09, 2005 8:23 am

    by COBS Tech Support » Mon Nov 13, 2006 8:54 am

    The correct syntax is .AND.

    E.g.,

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

Who is online

Users browsing this forum: No registered users and 1 guest