Wolfram Cloud Notebook : Indenting Code

  • Topic: Mathematica 
  • Thread starter Swamp Thing
  • Start date
  • Tags Tags
    Cloud Code
1 reply · 2K views · last reply
Swamp Thing
Insights Author
Messages
1,080
Reaction score
852
TL;DR
Tried manual indenting in multiline code. Got the "Set: Tag Times" error.
I tried adding spaces manually to indent a multiline code block in a notebook on Wolfram Cloud (www.wolframcloud.com). It throws the "Set: Tag Times" error.
Wolfram notebook screenshot titled Trying to Indent Multiline Code, showing In[94] func[x_] := ( x = x + 1; x = x * x; x = x - 1 ) with indented lines, then In[95] func[25] producing two Set: Tag Times in 26 Null is Protected errors and Out[95] = 0.


How can I indent code lines (preferably manually, but auto will also be fine).
 
Your question is very specific to how this software works. Have you googled for an answer or gone to their website to see if others have had the same problem?

That would be my first thought here.

Also check the related threads at the bottom of the page as there may be some answers there. In one case, I saw it was due to redefining a function:

https://www.physicsforums.com/threads/tag-times-is-protected.860491/
and in another a missing semi-colon:

https://mathematica.stackexchange.c...ify-the-source-of-a-tag-times-protected-error
https://stackoverflow.com/questions...ror-setwrite-tag-times-in-null-w-is-protected