TryPassword
TryPassword

Checks a password and jumps to the appropriate frame

bSuccess = myStoryboard.TryPassword( Password )

Return value
TRUE if the password matched (and the frame has changed) otherwise FALSE.

Parameters
  • Password
    Password to attempt. If it matches a password specified in NewFrame, the function returns TRUE and the frame is switched.
Comments

If the password given in NewFrame was all lowercase, this check will NOT be case sensitive. If any letters were capital, however, the strings must match exactly.
As with SwapFrame, this function will change the frame instantly, but will not stop the current function, so it is recomended to call Return soon after. This style is recomended:

If( oJAM.Storyboard.TryPassword( password ) )
    Return TRUE;

See also
Storyboard:NewFrame



JAM © 2005 no one in partiular
Project started by David Evans in 2005