I found that using any of the following conditions did not have any effect
if(isSlotOnCooldown('slot name') == 0) or if(isSlotOnCooldown('slot name') == true)
You just need to write this in Conditional Branch:
isSlotOnCooldown('your slot name')