Should variables be lowercase?

Twine Version: 2.3.16
Story Format: 2.36.1

Should variables always be lowercase?

If so, that might explain why I’m having some issues here and there.

Absolutely not, however variables are case sensitive. So $name and $Name are different variables. I’ve found helpful to adopt a strict rule: I always capitalize the first letter of story variables, I separate each word with a ‘_’, and I use only lower case for temporary variables. Exemples : _choice, $Name, $Friend_name.
Of course you don’t have to establish such a rule, but if you plan to use many variables it might be easier in the long term.


Thank you @souppilouliouma for clarifying that. I do appreciate it.