I want to make a weakaura that will show a texture based on the following condition:

if (horn of winter is not on cooldown) and (numberofrunesready <5) then show texture

I know everything except of how to express numberofrunesready, and this exactly is what bugs me.

I know GetRuneCount(slot) returns if a slot is ready, so I am thinking it might involve a loop, which i don't know what it should be.

Unless of course there is an API for what I want and I cannot find it.

Thanks