Hollowyearz

Ternary example

Jan 10th, 2014
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.29 KB | None | 0 0
  1. $searchSite = "http://www.autoitscript.com/site/"
  2.  
  3. $startPage = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main", "Start Page")
  4. ConsoleWrite("$startPage =  " & $startPage & @CRLF)
  5.  
  6. MsgBox(0, "Ternary", ($searchSite = $startPage) ? "Yay it worked" : "Different Page")
Advertisement
Add Comment
Please, Sign In to add comment