LordGolias/sqf

getMissionConfigValue returns multiple variable types

Closed this issue · 0 comments

Odd command returns multiple types depending on description.ext.

Return Value: Number, String or Array, depending on the attribute value type.

private _debug = getMissionConfigValue ["enableDebugConsole", 0];
(_debug == 1)
[2,8]:error:Binary operator "==" arguments must be [(String,String),(Config,Config),(Object,Object),(Object,Object),(Object,Object),(Object,
Object),(Object,Object),(Object,Object),(Number,Number),(String,String),(Object,Object),(Object,Object),(Object,Object)] 
(lhs is Array, rhs is Number)