Back

LoadBoolean

LoadBoolean loads and returns a boolean (true or false) value from the user's storage space under valueName. If there is no stored valueName, then method returns default value. Use this method when saving and loading user preferences.

app.LoadBoolean( name, default, file )

Example - Example



function OnStart()
{
    b = app.LoadBoolean( "MyBool", true );
    app.ShowPopup( b );

    app.SaveBoolean( "MyBool", !b );
}
    Copy     Copy All       Run      

string
boolean
string - path to file or folder ( "/absolute/..." or "relative/..." )