Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: ternary conditional help (style)

by tye (Sage)
on Nov 28, 2016 at 21:57 UTC ( [id://1176745]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if( condition() ) {
        $a = one();
    } else {
        $a = two();
    }
    
  2. or download this
    $a = condition() ? one() : two();
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-03-29 00:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found