Check (Method)

From Legacy Roblox Wiki
Revision as of 05:10, 27 April 2023 by Realjame (talk | contribs) (Text replacement - "</SyntaxHighlight>" to "</syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
Check( bool condition, string description )
Returns nil
Description: If condition is true, prints "Check passed: ", followed by description to the output, in blue text. Otherwise, prints "Check failed: ", again, followed by description, but in red text.
Member of: TestService

Example

This code would print Check failed: example to the output, in red text.

game:GetService('TestService'):Check(false, "example")