thanks David thats a nice simple solution. Cheers.
If I wanted to develop this further I ahve a question about maths. Awesome I know,
Now that I have a % of 'life' (white squares at a given time I want to write a mathematical expression that says something like:
'if life =
'if life = >25% but
.....etc for >50% and less than 75% = c3, and >75% = c4
To wirte an instruction/statement/message like this my head says if I put it between the two objects in question it will act as a sort of 'check' before produceing the outcome.
is this the case or is it better to have some sort of global message that applies to the patch as a whole? Also im trying to work through some examples with vexpr to try to acheive this - is this the right object to use?