Variable data typess

I’d like to know how SC distinguish between STRING and NUERAL data types for variables ?
we know that Var$ for example is a string, but how can I declare INT type variable to I can do some calculations i.e Var4 = Var1 + Var2 + Var3

ARTHUR

I don’t think I understand the question right. In php there is no such thing as a datatype. That is, if you have a string containing ‘1’ then as soon as you use it for calculations php will convert it to a number and the result will be numeric. That has nothing to do with scriptcase but php.

I see. I’m not a PHP coder so thanks for explaining, but still you declare variables in SC to if It want for example subtract two numbers I declare 2 variables - right, say:
Var1 and Var3 and the 3rd one for result. So, if the columns in a database hods INT(type) and I declare

$Var1
$Var2
$Result

the moment rhe record is red from the dB then columns assigned to Var,Var2 are they at this moment INT or STRING ?
Can I at this point do a math like: $Result = $Var2 - $Var1 ?
If I save $result in database (where Result column is INT) am I getting proper values ?

ARTHUR

For all these questions you will see that w3schools is your great friend…
$Var1=10;
$Var2=20;
$Result=$Var2-$Var1;

http://www.w3schools.com/php/php_datatypes.asp

http://php.net/manual/en/language.types.php
You can check the types with: echo gettype($myvariable) see here: http://php.net/manual/en/function.gettype.php

great link, thanks a lot RR