Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleStart with some code which isn't well aligned in the translator
Code Block
function main(Data)
   for i=1, 1000 do
      if i == 500 then 
           trace(i)
              end
                 end
end
Expand
titleSelect the whole block, and then press tab

Before:

Image Added

Expand
titleTada! The editor will align all the blocks

And after:

Image Added

This is a very helpful technique for making your code easier to read and understand.

See Block statements