Microsoft
Software
Hardware
Network
Question : Conditional Operator
Hi, is there a conditional operator in Ruby like the ? in C/C#, ie
x = y == nil ? 0 : 1
I know you can do
x = if (y == nil) then 0 else 1 end
Just wondering if the more compact is possible in Ruby.
Thanks!
Answer : Conditional Operator
you can use the ? in ruby as in C
x = y == nil ? 0 : 1
will work
Random Solutions
create batch action to crop images at predefined x,y co-ordinates - URGENT!
Can you add a linux box to an Active directory using the GUID?
Page contains both Secure and Non-Sec.
Microsoft Outlook is offline
My dell inspiron 1000 will not go to OS- Says to Delete restoration data and proceed to systm boot menu.
Custom GPO to change a Multi-String value in an ADM
Set Maximum Processor Usage
WinDVD7 on Windows Media Center 2005
STARTING WINDOWS XP WITH THE HELP OF RECOVERY CONSOLE
IIS 6.0 Locks Up Serving ASP - IISSTATE Log Included