# code-block-pro/1.27.2/build/shiki/samples/bat.sample

Code Block Pro – Beautiful Syntax Highlighting, version 1.27.2. 22 lines.

- Page: https://pluginprobe.com/plugins/code-block-pro/1.27.2/code/build/shiki/samples/bat.sample
- Raw: https://pluginprobe.com/plugins/code-block-pro/1.27.2/raw/build/shiki/samples/bat.sample
- Modified: 2023-09-03T01:04:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/code-block-pro/1.27.2/code/build/shiki/samples/bat.sample#L10-L20`.

```
rem
rem  Alternate form of if-elseif-else structure with goto for else
rem  case.  That way, you can group code together in a "more logical"
rem  or "more natural" manner.
rem

if .%1 == .1 goto 1
if .%1 == .2 goto 2
goto else
:1
echo You selected 1
goto endif
:2
echo You selected 2
goto endif
:else
echo else (neither 1 nor 2)
goto endif
:endif

:: From https://github.com/Archive-projects/Batch-File-examples/blob/master/files/tf5.bat

```
