Do the same thing with a Float value and an IF node. You can modify this Float value through the blueprint.