until

until is the exact opposite of the while statement. It performs a block of statements as long as a particular condition is false (or, rather, until it becomes true):

until (ValidPassword($user, $password))  {  print "YSdpgm_mSdpgm_mYou have entered an invalid password. Please try again.\n";Sdpgm_m  $password = GetPassword;}

Get Ubuntu Unleashed 2014 Edition: Covering 13.10 and 14.04,Ninth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.