That worked very well and was an easy solution.
I did not know how to check if the variable is false, so i needed to check if its true and then change it to false, but that's not a big deal.
So my solution was like that:
box has boolean variable set true ->
set boolean to false