Spell Priority Macro of sorts

Hey guys, my name is Edd and I’m new here on the forums. I’ve been a passive user - checking some of the macros you guys are posting here and some of them are quite amazing, I salute you all!

Just recently I rolled a monk - a Mistweaver - and I’m wondering if there is a way to make a macro that will use jab when there is no chi, then switch to tiger palm if there is 1 chi and then switch to blackout kick only if there is 2 chi available, otherwise it will still use jab?

Thank you for your replies and support!