There is a Jquery utility that provides a way to execute callback functions based on one or more objects named jQuery.when(). However, when you need to do the same thing but based on one or more "conditions", how can you archive this?
For example, you have a javascript interger. What you want to do is watching it's value and wait until the value matchs the expected value then you...