mercredi 11 novembre 2015

VBA If Statements Condensed

Excel 2015, Access 2015

General State:

if s=t then
    LD = 0
    Exit Function
end if

Current State:

If s = t Then: LD = 0: Exit Function: End If

Goal: Is there a way to condense multiple conditional statements into one line without essentially falsifying a return? I'm looking for a more elegant solution.

Aucun commentaire:

Enregistrer un commentaire