Implemenado ConditionalVariable