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.

コメント

このブログの人気の投稿

git-archive by 7zip

Skype mood to twitter by COM

C++ and C setting for VIM