I am making a code that checks if the input string has the same name as one of the sub-dictionaries (is that what they're called?) and then I need it to set effectIndex to that sub-directionary's index.
In said dictionary, every value has a name, which is a string.
if element['name'] == cmdArray[1]:
#effectIndex = !element index!```
I hope I was clear!