Swe-DivX Posted March 7, 2022 Posted March 7, 2022 Trying to get if form value exist from strings, is it possible? a_value = "479416" b_value = "Skyrim.esm" int PageFileValuesInt = jsonutil.FormListFind(path, "Factions", XXX) { "formList" : { "factions" : [ "479416|Skyrim.esm" ] } } Scriptname AExist extends Quest Import JsonUtil Bool Function Exist(string a_value, string b_value) if a_value == "" return -1 endif string path = "xxx.json" jsonutil.Load(path) int PageFileValuesInt = jsonutil.FormListFind(path, "Factions", XXX) jsonutil.UnLoad(path, true, false) return PageFileValuesInt != -1 EndFunction
Recommended Posts
Archived
This topic is now archived and is closed to further replies.