how do i add a condition to a widget?