End Select / End Case

The End Select action ends a block of Select/Case steps. The End Select action must be used with a Select step in order to end the block of Select/Case steps. The End Case action ends a block of steps started by a preceding Case action. The End Case action must be used with a Case step in order to end a block of steps started by a preceding Case action.

Declaration

</AMCASE>

</AMSELECTCASE>

Example

This example uses a Select/Case combination along with a Weekday() function to determine the day of the week.

<AMSELECTCASE EXPRESSION="%Weekday(Now())%">

<AMCASE CONSTANT="1">

<AMSHOWDIALOG>Today is Sunday.</AMSHOWDIALOG>

</AMCASE>

<AMCASE CONSTANT="2">

<AMSHOWDIALOG>Today is Monday.</AMSHOWDIALOG>

</AMCASE>

<AMCASE CONSTANT="3">

<AMSHOWDIALOG>Today is Tuesday.</AMSHOWDIALOG>

</AMCASE>

<AMCASE CONSTANT="4">

<AMSHOWDIALOG>Today is Wednesday.</AMSHOWDIALOG>

</AMCASE>

<AMCASE CONSTANT="5">

<AMSHOWDIALOG>Today is Thursday.</AMSHOWDIALOG>

</AMCASE>

<AMCASE CONSTANT="6">

<AMSHOWDIALOG>Today is Friday.</AMSHOWDIALOG>

</AMCASE>

<AMCASE CONSTANT="7">

<AMSHOWDIALOG>Today is Saturday.</AMSHOWDIALOG>

</AMCASE>

<AMCASE CONSTANT="8">

<AMSHOWDIALOG>Something went horribly wrong.</AMSHOWDIALOG>

</AMCASE>

</AMSELECTCASE>

</AMIF>

See Also: If, If Compare Files, If File Exists, If Folder Exists, If Last Step, If Pixel Exists, If Process Running, If Text Contains, If Windows Exists, End If, Goto, Label, Select/Case