Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Elseif doesn't seem to be working, help please?

Asked by
VoltCode 101
7 years ago
if ItemFromStorage.ItemInfo.Category.Value == "General" then
    -- general stuff
elseif ItemFromStorage.ItemInfo.Category.Value == "Ammo" then
    -- ammo stuff



    elseif ItemFromStorage.ItemInfo.Category.Value == "Apparel" then
    -- apparel stuff


    elseif ItemFromStorage.ItemInfo.Category.Value == "Weapons" then
    -- weapon stuff
        end

Thats the script ^

For some reason it just ignores everything, Anyone got any ideas?

0
ItemFromStorage = Folder, ItemInfo = An int value, Category = String value VoltCode 101 — 7y
1
Maybe the value does not equal General Ammo Apparel or wepons shabbs15 67 — 7y
0
It does, I printed the value and it was equal to 'Weapons' VoltCode 101 — 7y

Answer this question