Using Comments
Commenting your code is especially critical when working with multiple developers – or you simply want to remember what the code was made for. HaasScript’s Visual Editor offers a Comment -block for this, and the Script Editor has this feature from LUA itself. Let’s have a look at an example how this works in the Script Editor:
-- This here is a one-line comment.
if something_happens then -- we can also add these after code...
do_something() -- ...to explain what happens on a specific line.
end
--[[
But we are
also able to
create multi-
line comments.
]]