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 件のコメント:
コメントを投稿