$foo == 1 ? print "hi" : print "bye";
You can read more about trinary operators here
Get Strong Together!!
In reply to Re: If / elses by aardvark in thread If / elses by mbond