IF THEN statement

Results 1 to 2 of 2

Thread: IF THEN statement

  1. #1
    Join Date
    Dec 1969

    Default IF THEN statement

    I&#039;m tring to use a query to spit out a value that is then checked against the date to change another value.<BR><BR>IF (req_data[9] &#062;= &#039;$year-$mon-17&#039;) {$date = "The 17th";}<BR>but it&#039;s not working.<BR>All the $date&#039;s are saying The 17th even though only 2 acutally are greater than or equal $year(2002)-$mon(08)-17.

  2. #2
    Join Date
    Dec 1969

    Default If this is javascript

    it&#039;s &#039;if&#039;, not IF, or If. Watch your cases.

Posting Permissions

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