Disable step in a test

hi,
how do i disable a step in a test according to an input parameter?
if the parameter is empty i want the test to skip some steps.