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

Function isNonEmptyValue

apps/sim/lib/workflows/subblocks/visibility.ts:214–219  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

212 * Check if a value is considered set for advanced visibility/selection.
213 */
214export function isNonEmptyValue(value: unknown): boolean {
215 if (value === null || value === undefined) return false
216 if (typeof value === 'string') return value.trim().length > 0
217 if (Array.isArray(value)) return value.length > 0
218 return true
219}
220
221/**
222 * Resolve basic and advanced values for a canonical group.

Callers 10

normalizeBlockDataFunction · 0.90
collectClearedDependentsFunction · 0.90
shouldSerializeSubBlockFunction · 0.90
collectBlockFieldIssuesFunction · 0.90
useDependsOnGateFunction · 0.90
resolveCanonicalModeFunction · 0.85
getCanonicalValuesFunction · 0.85
hasAdvancedValuesFunction · 0.85
resolveDependencyValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected