Output
Output enhances the functionality of the Luau error, warn, and print functions.
Summary
Methods
| SetPrefix (prefix: string?) |
| PrintIf (conditional: boolean, message: Tuple) |
| WarnIf (conditional: boolean, message: Tuple) |
| ErrorIf (conditional: boolean, message: Variant, stackLevel: number?) |
Methods
SetPrefix
All Output methods called by this script will prefix their messages with the provided prefix. Passing nil will remove the prefix.
Output:SetPrefix ( prefix: string? ) : ()
Parameters
| prefix : string? |
PrintIf
Prints the message if the conditional is true.
Output:PrintIf ( conditional: boolean, message: Tuple ) : ()
Parameters
| conditional : boolean |
| message : Tuple |
WarnIf
Warns the message if the conditional is true.
Output:WarnIf ( conditional: boolean, message: Tuple ) : ()
Parameters
| conditional : boolean |
| message : Tuple |
ErrorIf
Errors with the message if the conditional is true.
Output:ErrorIf (
conditional: boolean, message: Variant, stackLevel: number?
) : ()
Parameters
| conditional : boolean |
| message : Variant |
| stackLevel : number? |