generateLtCheck()
generateLtCheck(
varName,lessThan,ctx,customMessage?):CodeGenResult
Experimental
Generates inline code for the lt constraint (exclusive less than).
Parametersโ
varName: stringโ
The variable name to check
lessThan: numberโ
Upper bound (exclusive)
ctx: GeneratorContextโ
The generator context
customMessage?: stringโ
Optional custom error message
Returns: CodeGenResultโ
Generated code and updated context
Sinceโ
2.0.0