Condition
generateIfNotEmpty
Signature: generateIfNotEmpty(toBeCheck: string, content: string)
Generate content if the string is not empty.
Examples:
Expression
generateIfNotEmpty("", "test")Expression
generateIfNotEmpty("a", "test")generateIfEmpty
Signature: generateIfEmpty(toBeCheck: string, content: string)
Generate content if the string is empty.
Examples:
Expression
generateIfEmpty("", "test")Expression
generateIfEmpty("a", "test")generateIfNot
Signature: generateIfNot(condition: boolean, content: string)
Generate content if the condition is false.
Examples:
Expression
generateIfNot(true, "test")Expression
generateIfNot(false, "test")generateIf
Signature: generateIf(condition: string, content: string)
Generate content if the condition is true.
Examples:
Expression
generateIf(true, "test")Expression
generateIf(false, "test")Table of Contents