Posted by: Clark
« on: September 07, 2016, 03:26:09 AM »To avoid adding entries to a hash table, use the _indexin() method.
if (hashtab._indexin('abc') && hashtab:['abc']==null) ...
if (hashtab._indexin('abc') && hashtab:['abc']==null) ...
if (Linjer:[sTemp] == null) { Linjer:[sTemp]=AddValue; } else { Linjer:[sTemp]+=AddValue; }
This creates the hash variable with a specific value if it does not exist.&s_nameIndex:["Four"]
NameIndex *x = &s_nameIndex._el("Four"); x->m_name="newName";