Conditional activation group, get current desktop/space

Hello dears

I have 9 desktops/spaces

I'm trying to switch desktop when I swipe up with 4 fingers like, when I'm at space #1, I go to #7, when I'm at #7, I go to #4

My current preset setup isn't dynamic enough because it checks on the app name but not the desktop/space

Any ideas?

I'm still lost, I was only able to activate it by using app names, but it's hectic process

unfortunately I don't think there is a good way to achieve this. I don't know of any way to get the current space index ;-(