Computer Science Canada

Keep on getting this indent error

Author:  dhyanp11 [ Wed Mar 09, 2016 9:32 pm ]
Post subject:  Keep on getting this indent error

http://pastebin.com/Eg7v1rmW

Author:  Dreadnought [ Wed Mar 09, 2016 10:47 pm ]
Post subject:  Re: Keep on getting this indent error

As I explained (perhaps not clearly enough) in your previous post, you should be writing your if statements as
Turing:
if [condition1] then
    [...]
elsif [condition2] then
    [...]
else
    [...]
end if

otherwise you need extra end ifs
Turing:
if [condition1] then
    [...]
else
    if [condition2] then
        [...]
    else
        [...]
    end if
end if


And of course you can use multiple elsifs in a row.


: