İncrease an Int With Using String

Hello to everyone, I have a problem, I have a string called by ArttirilanSey. And I have a code called by Storage, there are a lot of Int in this script. And I want increase the Int that writing on the ArttirilanSey. For example there are Ints, LemonKG and OrangeKG. And İf ArttirilanSey =“LemonKG”, I want increase LemonKG.

Storage.ArttirilanSey += 10;

sounds like you want a Switch/Case scenario.

        switch (ArttirilanSey)
        {
            case "LemonKG":
                LemonKG += 10;
                break;
            case "OrangeKG":
                OrangeKG += 10;
                break;
        }

Edit…

No, you can’t add 10 to a string. :wink:

Yes that is exactly what I want. Thank you.