Announcement

Collapse
No announcement yet.

&'s in conditionals?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • &'s in conditionals?

    Hi all, can we use ands in conditionals?

    i.e..

    <if condition="$name=="hello" AND $age > 90">
    ...
    </if>

    Cheers all
    Taz
    http://www.e-tones.co.uk - The best site on the net for mobile phones.

  • #2
    As far as i know, yes
    That's the end of that!

    Comment


    • #3
      why not && ?
      My Sites :

      Comment


      • #4
        I thought the PHP standard for 'and' was 'AND', && is c/java syntax, i've never actually tried it with PHP!!

        Anywho, thanks for the heads up...

        Goes to recode some conditionals

        Cheers All
        Taz
        http://www.e-tones.co.uk - The best site on the net for mobile phones.

        Comment


        • #5
          vb3 goes syntax crazy ...

          Comment


          • #6
            Originally posted by etones
            Hi all, can we use ands in conditionals?

            i.e..

            <if condition="$name=="hello" AND $age > 90">
            ...
            </if>

            Cheers all
            Taz
            Any PHP logical operators will work - http://www.php.net/manual/en/languag...rs.logical.php

            And don't use double quotes around 'hello', use single quotes.

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...
            X