Velocity Reviews > Perl > How to use two or more question in function if ?

# How to use two or more question in function if ?

Tamara
Guest
Posts: n/a

 05-08-2004
How to use two or more question in function if ?
E.g.
If a=0 and b=20 then print "a=o and b=20"

Gregory Toomey
Guest
Posts: n/a

 05-08-2004
Tamara wrote:

> How to use two or more question in function if ?
> E.g.
> If a=0 and b=20 then print "a=o and b=20"

print "a=0 and b=20" if \$a==0 && \$b==20

gtoomey

Tore Aursand
Guest
Posts: n/a

 05-09-2004
On Sat, 08 May 2004 05:28:25 +0200, Tamara wrote:
> How to use two or more question in function if ?
> E.g.
> If a=0 and b=20 then print "a=o and b=20"

Why do you want to write 'a=o'? It would have made more sense if you
would write 'a=0';

if ( \$a == 0 and \$b == 0 ) {
print 'a=o and b=20';
}

--
Tore Aursand <(E-Mail Removed)>
"There are three kinds of lies: lies, damn lies, and statistics."
(Benjamin Disraeli)

 Thread Tools

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are Off Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Edward A. Falk C Programming 1 04-04-2013 08:07 PM GenxLogic Java 3 12-06-2006 08:41 PM Michael Python 4 06-26-2006 08:00 AM komal C++ 6 01-25-2005 11:13 AM Robert Wallace Perl Misc 1 12-31-2003 05:13 PM

Advertisments