/// import { cell, recipe, UI } from "commontools"; // Tests triple || chain: a || b || c // Should produce nested unless calls export default recipe("LogicalTripleOrChain", (_state) => { const primary = cell(""); const secondary = cell(""); const items = cell([]); return { [UI]: (
{/* Triple || chain - first truthy wins */} {primary.get().length || secondary.get().length || "no content"} {/* Triple || with mixed types */} {items.get()[0]?.length || items.get()[1]?.length || 0}
), }; });