GoCode Variables and Types - Owen2k6/GoOS GitHub Wiki

Variables & Types

GoCode keeps several dictionaries:

  • Strings: Dictionary<string,string>
  • Integers: Dictionary<string,int>
  • Booleans: Dictionary<string,bool>
  • Windows: Dictionary<string,Window> (for UI references)
  • ButtonActions: Dictionary<string,int> (buttonName → target line)

String

string name = value
string=name=value
  • Stored literally. No automatic quoting or escaping is applied by the interpreter—use the exact text you want.

Integer

int score = 42
int=score=42
  • Parsed with int.Parse. Invalid numbers log an error to the console.

Boolean

bool=name=true
bool=flag=false
  • Stored as true/false. Currently used mainly for future logic; comparisons in if= are string or integer based.
⚠️ **GitHub.com Fallback** ⚠️