Advanced control features

Advanced control features to be used in events.

Actions

Set condition return value
Set the return value of the Condition events function to either true (condition will pass) or false.

Set number return value
Set the return value of the events function to the specified number (to be used with “Expression” functions).

Set text return value
Set the return value of the events function to the specified text (to be used with “String Expression” functions).

Conditions

Check if a function parameter is set to true (or yes)
Check if the specified function parameter (also called “argument”) is set to True or Yes. If the argument is a string, an empty string is considered as “false”. If it's a number, 0 is considered as “false”.

Always
This condition always returns true (or always false, if the condition is inverted).

Expressions

Expression Description
GetArgumentAsNumber(string) Get function parameter (also called “argument”) value
string Parameter name
GetArgumentAsString(string) Get function parameter (also called “argument”) text
string Parameter name

This page is an auto-generated reference page about the Advanced control features feature of GDevelop, the open-source, cross-platform game engine designed for everyone. Learn more about all GDevelop features here.