Good day people,
so I’ve been away for some time and forgot the basics of choicescript and here is my problem:
when exactly should I declare a variable as numeric instead of text?
because I tried this today:

declared two variables as text, and they can be used in math operations just fine, so why do I need to declare a variable as numeric?
sorry for such a basic question, thank you 
Grossly speaking, everything in ChoiceScript is saved as text behind the curtain, but when you perform an arithmetic operation (adding, subtraction, multiplying, etc) it will try to convert the value into a number.
You’re right in pointing out you don’t have to to declare a variable as a number, but if it is a number, why would you declare it as a string? The only case where I use string to declare a number is for negative numbers, otherwise ChoiceScript will think I’m trying to perform a subtraction.
// ChoiceScript thinks this is a subtraction
*temp var_1 -5
// Negative number
*temp var_2 "-5"
1 Like
You should use
*create var_1 100
*create var_2 50
Booleans (string variable) are more used for variables that are words or letters etc