MCPcopy
hub / github.com/OpenWebGAL/WebGAL / getBooleanArgByKey

Function getBooleanArgByKey

packages/webgal/src/Core/util/getSentenceArg.ts:12–15  ·  view source on GitHub ↗
(sentence: ISentence, argKey: string)

Source from the content-addressed store, hash-verified

10}
11
12export function getBooleanArgByKey(sentence: ISentence, argKey: string): boolean | null {
13 const argValue = getSentenceArgByKey(sentence, argKey);
14 return toSafeBoolean(argValue);
15}
16
17export function getNumberArgByKey(sentence: ISentence, argKey: string): number | null {
18 const argValue = getSentenceArgByKey(sentence, argKey);

Callers 14

scriptExecutorFunction · 0.90
startPerformMethod · 0.90
setTempAnimationFunction · 0.90
setAnimationFunction · 0.90
changeFigureFunction · 0.90
sayFunction · 0.90
waitFunction · 0.90
setTransitionFunction · 0.90
playVideoFunction · 0.90
setTransformFunction · 0.90
introFunction · 0.90
setVarFunction · 0.90

Calls 2

toSafeBooleanFunction · 0.90
getSentenceArgByKeyFunction · 0.85

Tested by

no test coverage detected