For example: You've got a list of token names (possible targets). Before presenting it to the macro user, you want to filter out nonsensical targets like lib:tokens and image:tokens. How would I get the following code snippet to work? It's supposed to filter out all tokens, whose names start with "image:" or "lib:".
Code: Select all
[H,FOREACH(tempVictim, VictimList), CODE:{
[deleteCondition = if(getGroupCount(strfind(tempVictim, "lib:") ) > 0 ,1,0)]
[H, IF(deleteCondition == 1): VictimList = listDelete(VictimList, listFind(VictimList, tempVictim))]
}]