MCPcopy Index your code
hub / github.com/microsoft/SandDance / ifExpr

Function ifExpr

docs/app/js/sanddance-app.js:148855–148857  ·  view source on GitHub ↗
(test, a, b)

Source from the content-addressed store, hash-verified

148853};
148854const isSimple = (enc)=>enc == null || Object.keys(enc).length === 1;
148855const ifExpr = (test, a, b)=>({
148856 signal: `${test} ? (${toExpr(a)}) : (${toExpr(b)})`
148857 });
148858const ifOrient = ($orient, t, b, l, r)=>({
148859 signal: (l != null ? `${$orient} === '${Left}' ? (${toExpr(l)}) : ` : "") + (b != null ? `${$orient} === '${Bottom}' ? (${toExpr(b)}) : ` : "") + (r != null ? `${$orient} === '${Right}' ? (${toExpr(r)}) : ` : "") + (t != null ? `${$orient} === '${Top}' ? (${toExpr(t)}) : ` : "") + "(null)"
148860 });

Callers 3

ifLeftTopExprFunction · 0.70
ifTopExprFunction · 0.70
ifRightExprFunction · 0.70

Calls 1

toExprFunction · 0.70

Tested by

no test coverage detected