From: fox foxmaster Date: 2013-01-16T23:19:14+09:00 Subject: Variable empty or not Hi all, I am doing some evaluating on a variable, $Fw_Ip = %x[/usr/bin/plink -pw xxxxxx xxxx@xxxxxx "command" |grep INACTIVE] Now I want to do something depending on if the $Fw_Ip is empty or not. if ($Fw_Ip != nil) puts "Active" else puts "Inactive" end I guess that the variable is not empty so it will always return True but if I puts $Fw_Ip it is empty. Suggestions on how to solve it would be much appreciated. -- Posted via http://www.ruby-forum.com/.