📦Variables

infLang supports two basic types of variables:

1.String Variables

string name = "Robert"
  • Stored as key-value pairs.

  • Can be local (function-scoped) or global depending on where it's declared.

  • Double quotes are optional when the value is empty (string x sets x to empty string).

2.Integer Variables

num luckyNumber = 14
  • Integers only (no decimals or expressions).

  • If a number is not assigned, it defaults to null.

Last updated