I realized that there's no easy way to do something like this on one line, inline with other commands, with native functions: Local $msg = 4 While $msg = 4 Local $txt, $num = Random(1, 6, 1) Switch $num Case 1 $txt = "Number 1 was chosen!" Case 2 $txt = "This is what shows for #2" Case 3 $txt = "3 is a magic number." Case 4 $txt = "Twas a 4" Case Else $txt = "Uh oh! I don't know about "