how to end if statement roblox

JavaScript
-- exits the current scope

if (condition) then 
    return
	print("Hello World!")
end 

-- code won't print anythingif 2 + 3 == 5 then
	print("Two plus three is five")
end
Source

Also in JavaScript: