Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Defining Variables
- $question = Read-Host "Would you like to get your easter egg? Yes/No "
- $yes = (($question -eq "Yes") -or ($question -eq "Y"))
- $no = (-not($yes))
- #Beginning of IF Statement1
- if ($question -eq $yes)
- {write-host "Continuing the Easter Egg"}
- elseif ($no)
- {write-host "Sorry, you have died! Maybe if you want to play next time you will enter 'Yes' "}
- if ($no)
- {$host.enternestedprompt()}
- #End IF Statement1
- #Defining Variable
- $statement = Read-Host "Whats the magic word?"
- #Beginning of IF Statement2
- if (($statement -eq "fubar") -or ($statement -eq "life"))
- {write-host "You have won the internet"}
- elseif (($statement -eq "death") -or ($statement -eq "food"))
- {write-host "You are an OK Person"}
- elseif (($statement -eq "idk") -or ($statement -eq "i dont know") -or ($statement -eq "help"))
- {write-host "You don't know? Well here: fubar,life,death,food"}
- else
- {write-host "Sorry, you have died! Please start over."}
- #End of If Statment
- $host.enternestedprompt()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement