if (fb_.verbInfo.executionMode is "start") { // validate attributes // has no attributes // must be nested inside an if (not structKeyExists(fb_.verbInfo,"parent") or fb_.verbInfo.parent.lexiconVerb is not "if") { fb_throw("fusebox.badGrammar.trueNeedsIf", "Verb 'true' has no parent 'if' verb", "Found 'true' verb with no parent 'if' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#."); } // strict mode - check attribute count: if (fb_.verbInfo.action.getCircuit().getApplication().strictMode) { if (structCount(fb_.verbInfo.attributes) neq 0) { fb_throw("fusebox.badGrammar.unexpectedAttributes", "Unexpected attributes", "Unexpected attributes were found in a 'true' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#."); } } // compile if (fb_.verbInfo.parent.ifUsed) { fb_appendLine(""); } else { fb_appendLine(""); fb_.verbInfo.parent.ifUsed = true; } }