Engine:CCMD lua.exit: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
Line 16: Line 16:
global
global
> context lua
> context lua
> context
lua
> print(1 + 2)
> print(1 + 2)
3
3

Revision as of 21:41, 18 October 2023

Console commands

Creates a new variable in the current context, if doesn't exist. If exists is ignored.

lua exit

Arguments

  • none

Details

Used in the 'lua' context to exit the context, as the 'context' command is not available. Will switch to the 'global' context when run.

Examples

Default values

  • Enters 'lua' context, runs command, switches contexts back.
> context
global
> context lua
> context
lua
> print(1 + 2)
3
> exit
> context
global

Notes