Ignore/Skip an entry in an enum loop based on bool

Hello :slight_smile:

I am reasonably new to blueprints and/or code in general and I can’t seem to find a solution to my problem.

So the use case:
I have an Enum with several entries for “combat styles” which are connected to state swapping for animation. I currently have it set up to loop through each Enum entry on button press.

Question:
Is it possible to “skip” or “ignore” an entry in the loop based on a boolean?

simple example: If my enum has entries for 1h sword style / 2h sword style / reverse grip sword style / sword and shield style. Can I some how set up a condition, based on having a shield equipped, that would skip over or ignore “sword and shield style” and instead just continue to loop through the other entries?

Any help would be greatly appreciated :smiley:

It doesn’t matter what type of loop you use, but you should be able to drop a branch in your loop body and then use that to switch the behavior of your stances. Here’s a screenshot that should help.

http://prntscr.com/iclfab

Thank you :slight_smile: