Hi guys I'm editing the Item Properties Evaluator so it doesn't show mods for Spellbooks and the like and was wondering how you can write an OR statement (If A = B or A = C then X = Y).
I was thinking I could use ||, like for example this works for one string:
if wstring.find(title, L"spellbook") then
ItemPropertiesEvaluator.ItemType = ItemPropertiesEvaluator.TYPE_SKIP
return
end
And I thought I could add before "then":
|| wstring.find(title, L"scrapper's compendium")
But it doesn't work so was wondering what the code is for an OR operator.
Also, what's the best format to save in if you run notepad? ANSI, Unicode, Unicode big endian, or UTF-8? I know you have to save as .LUA, but was just curious if one encoding was preferred by modders (for basic HTML I always use UTF-8).
Thanks!
I was thinking I could use ||, like for example this works for one string:
if wstring.find(title, L"spellbook") then
ItemPropertiesEvaluator.ItemType = ItemPropertiesEvaluator.TYPE_SKIP
return
end
And I thought I could add before "then":
|| wstring.find(title, L"scrapper's compendium")
But it doesn't work so was wondering what the code is for an OR operator.
Also, what's the best format to save in if you run notepad? ANSI, Unicode, Unicode big endian, or UTF-8? I know you have to save as .LUA, but was just curious if one encoding was preferred by modders (for basic HTML I always use UTF-8).
Thanks!