[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: or condition
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 2 Aug 2002 11:39:32 +0100
> Is this correct?

why not just try it?
Yes it looks OK to me. Note you are testing string values not mumeric
values. It might be that you really want $a=1 not $a='1' it depends.

if numeric tests are OK and you know it's an integer you could say
$a &gt; 0 and $a &lt; 5
instead of listing 1 2 3 4 explictly.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • or condition
    • subbu - Fri, 2 Aug 2002 06:08:13 -0400 (EDT)
      • David Carlisle - Fri, 2 Aug 2002 06:40:07 -0400 (EDT) <=
      • Jan Zavoral - Fri, 2 Aug 2002 08:45:51 -0400 (EDT)
      • Wendell Piez - Fri, 2 Aug 2002 17:34:56 -0400 (EDT)
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member