so, imagine an RPG where you have healers that can restore a certain amount of HP, give a positive effect to your party members (attack up, speed up, defense up, etc.), or restore a negative effect (cures poison, paralisys, or confusion).
I'm storing the skills in an array with the X row as the name, Y row as the target (single member, or all party members), and Z row as the effect. If the Z row is an int then I'll calculate the number of HP restored using a math formula, but if the Z row is a string then I'll do something based on it (whether raising stats or restoring negative effects)
what I don't understand is how do I know whether the value I retrieve from an array is an int or a string?
so maybe if I'm checking the value like this
allSkills Value at (1, 1, 1) = isInt | (add action)
any suggestions would be appreciated, thanks.