Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: variable set to 0 ? 0 : 1

by Wally Hartshorn (Hermit)
on Sep 06, 2002 at 19:43 UTC ( [id://195759]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $vacation_days = ($seniority > 5) ? 15 : 10;
    
  2. or download this
    if ($seniority > 5) {
        $vacation_days = 15;
    ...
    else {
        $vacation_days = 10;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://195759]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-20 02:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found