MCPcopy Index your code
hub / github.com/4ian/GDevelop / elseEv

Function elseEv

GDevelop.js/__tests__/GDJSDisabledCodeGenerationIntegrationTests.js:47–52  ·  view source on GitHub ↗
(varName, value, { conditions, subEvents } = {})

Source from the content-addressed store, hash-verified

45 std(varName, value, { ...opts, conditions: trueCondition });
46
47 const elseEv = (varName, value, { conditions, subEvents } = {}) => ({
48 type: 'BuiltinCommonInstructions::Else',
49 conditions: conditions || [],
50 actions: [setVar(varName, value)],
51 events: subEvents || [],
52 });
53
54 const elseIfTrue = (varName, value, opts = {}) =>
55 elseEv(varName, value, { ...opts, conditions: trueCondition });

Callers 3

elseIfTrueFunction · 0.70
elseIfFalseFunction · 0.70

Calls 1

setVarFunction · 0.70

Tested by

no test coverage detected