SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Knowledge is key 2 progression Tryst's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Validate Comparitor Expressions

    Hi all,

    Is the following valid?...

    IF (Expression) AND (Expression) AND ((Expression) OR (Expression))

    where i want either of the expressions within the nested brackets to equate to true along with the two initial expressions

    Tryst

  2. #2
    SitePoint Addict markchivs's Avatar
    Join Date
    Oct 2004
    Location
    Malvern Hills, UK
    Posts
    233
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yep looks good

    You will need a TRUE from all three expressions in order for the IF test to return TRUE i.e.

    IF (TRUE) AND (TRUE) AND (One of the two must return TRUE)




Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •