Back

SaveBoolean

SaveBoolean saves a boolean (true or false) value to the user's storage space under valueName. Use this method when saving and loading user preferences.

app.SaveBoolean( name, value, 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/..." )