Thanks for the Relay block. I'm still a rookie with Simulink and dont know all the fancy names for the blocks =)
It seems to work fine for now and I didn't attempt your pseudo code (not that I understood it clearly but Relay seems to work).
Thanks a bunch.