Exit Script If

Idea created by chivalry on Jun 17, 2017
    Active
    Score6
    • Hemant Kumar Patel
    • MiniSchmitz
    • alistairhay
    • chivalry
    • monkeybreadsoftware
    • Markus Schneider

    Often, I'll have code like this:

     

    If [ IsEmpty ( $_var ) ]

      Exit Script

    End If

     

    We already have Exit Loop If. I'd welcome Exit Script If.

     

    Exit Script If [ IsEmpty ( $_var ) ]