2009-10-08

invoke &&

Stuck in && place


1st code:When foo_text does not include 'woo',
But always show "It is great movie".

some_str = foo_text.include?('woo') ? 'madam' : ''
if @jekyll_hyde.include?('one-thirty-four' && some_str)
then puts "It is great movie"
else puts "Please check it out again"
end


This below code works well

some_str = foo_text.include?('woo') ? 'madam' : ''
if @jekyll_hyde.include?(some_str && 'one-thirty-four')
then puts "It is great movie"
else puts "Please check it out again"
end


By the way,really good movie that is.

0 件のコメント:

BCM4321 on Latitude D430

At kernel 3 find wireless hardware lspci | grep -i wireless  check using current kernel module with PCI bus address lspci -vv -s 0c:...