Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: assigning the maximum of two numbers

by ikegami (Patriarch)
on Nov 04, 2005 at 20:15 UTC ( [id://505862]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $a = $i > $j ? 6 : 10;
    
  2. or download this
    LET a = (i > j) * 4 + 10;
    
  3. or download this
    $a = ($i > $j) * -4 + 10;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-19 20:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found