Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2014
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. #Defining Variables
  2. $question = Read-Host "Would you like to get your easter egg? Yes/No "
  3. $yes = (($question -eq "Yes") -or ($question -eq "Y"))
  4. $no = (-not($yes))
  5.  
  6.  
  7. #Beginning of IF Statement1
  8. if ($question -eq $yes)
  9. {write-host "Continuing the Easter Egg"}
  10.  
  11. elseif ($no)
  12. {write-host "Sorry, you have died! Maybe if you want to play next time you will enter 'Yes' "}
  13.  
  14. if ($no)
  15. {$host.enternestedprompt()}
  16. #End IF Statement1
  17.  
  18.  
  19. #Defining Variable
  20. $statement = Read-Host "Whats the magic word?"
  21.  
  22.  
  23. #Beginning of IF Statement2
  24. if (($statement -eq "fubar") -or ($statement -eq "life"))
  25. {write-host "You have won the internet"}
  26.  
  27. elseif (($statement -eq "death") -or ($statement -eq "food"))
  28. {write-host "You are an OK Person"}
  29.  
  30. elseif (($statement -eq "idk") -or ($statement -eq "i dont know") -or ($statement -eq "help"))
  31. {write-host "You don't know? Well here: fubar,life,death,food"}
  32.  
  33. else
  34. {write-host "Sorry, you have died! Please start over."}
  35. #End of If Statment
  36.  
  37.  
  38.  
  39. $host.enternestedprompt()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement