How do I exit a function early and return nothing?

Your syntax is wrong. Julia does not have the same syntax as python. if statements are not whitespace sensitive and need an end to complete the block.

You should try to work. See this section in the manual. Hopefully someone else here can recommend to you are good introductory tutorial for people coming from python.

3 Likes