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

Function toBoolean

apps/sim/blocks/blocks/telegram.ts:452–453  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

450
451 /** Coerce agent-supplied "true"/"false" strings (or booleans) to a real boolean. */
452 const toBoolean = (value: unknown): boolean =>
453 value === true || String(value).toLowerCase() === 'true'
454
455 switch (params.operation) {
456 case 'telegram_message':

Callers 1

telegram.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected