Require (Method)

From Legacy Roblox Wiki
Revision as of 05:40, 18 February 2012 by >JulienDethurens (Created page with "<onlyinclude>{{Method |name = Require |arguments = {{type|bool}} <var>condition</var>, {{type|string}} <var>description</var> |description = If <var>c...")
Jump to navigationJump to search
Require( bool condition, string description )
Returns nil
Description: If condition is true, prints Require passed: , followed by description, to the output, in blue text. Otherwise, prints Require failed. Test ended: , followed by description, to the output, in red text, and calls the Done method of the TestService.
Member of: TestService

Example

This code would print Require passed: example to the output, in blue text. game:GetService('TestService'):Require(false, "example")