if .. elseif

Maybe I am missing something but is there a way to have this functionality in the scripts?

if "this matches"
do this....
elseif "this matches"
do this...
end if

Looking at the "List of Parser Commands" I do not see a way where the elseif test could be incorporated. If I am missing something or someone knows a trick I would certainly be interested in that info.... thanx!!

it's "else" not "elseif", and it's without a second "this matches"

From the help page:
If S Check for occurrence of S on current position.
IfNot S Check for absence of S on current position.
Else Else branch of an If operation.
Endif End of an If/IfNot operation.

from a script of mine:

        if "XXX-ALBUMARTIST-XXX"
            sayoutput "albumartist"
        else
            regexpreplace "\s{2,}" " "
            sayrest
        endif

or more complicated here:

if "-"                                                #one digit
    
else
    movechar 1
    if "-"                                            #two digits
        regexpreplace "-(\d)-" "-0$1-"
    else
        movechar 1
        if "-"                                        #three digits
            regexpreplace "-(\d)-" "-0$1-"
            regexpreplace "-(\d\d)-" "-0$1-"
        else                                        #four digits
            regexpreplace "-(\d)-" "-0$1-"
            regexpreplace "-(\d\d)-" "-0$1-"
            regexpreplace "-(\d\d\d)-" "-0$1-"
        endif
    endif
endif