Show or hide context menu item based on condition

How do I show or hide context menu items based on condition (For example, some item field value “True” or “False”)? I`v added some custom actions for now (using features to add them), but would be nice to manipulate visibility of them.

alt text

I`m using WSS 3.0.

Thank you for response.

Show or hide context menu item based on condition