What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

PB - how to use "settings"

oh it would be if (Settings.MySetting == true)
That would be for a bool (boolean - true or false), could actually shorten the code to if (Settings.MySetting)

so if you want to see if it is true, do if(Settings.MyS1)... if you want to do the action if it is false, do if(!Settings.MyS1)

A single '=' would set the value of MySetting, but wouldn't be used within the (check) of the if(check).
A double '==' means IsEqualTo.
 
it doesn't even recognize my setting the name "mysetting" does not exist.. ( or something )

using it via Settings.mysetting nor mysetting does work -_-"

Edit:
Code:
if (bool)Settings["mysetting"]

works. :)
 
Last edited:
Back
Top