MCPcopy Index your code
hub / github.com/simstudioai/sim / isConditionPrimitive

Function isConditionPrimitive

apps/sim/lib/workflows/blocks/block-outputs.ts:47–49  ·  view source on GitHub ↗

* Checks if a value is a valid primitive for condition comparison.

(value: unknown)

Source from the content-addressed store, hash-verified

45 * Checks if a value is a valid primitive for condition comparison.
46 */
47function isConditionPrimitive(value: unknown): value is ConditionValue {
48 return typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean'
49}
50
51/**
52 * Evaluates an output condition against subBlock values.

Callers 1

evaluateOutputConditionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected