Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1750

Weird Failure with Testing the String "plugin"

$
0
0
I was using the SWITCH command to test the values of a string and was getting wrong results. It appears that there is a strange bug in the SWITCH command or a special meaning to the string "plugin". Here's a simple example with the batch script followed by two examples.

Code:
switch %1
  case plugin
    echo case is plugin
  case test
    echo case is test
  default
    echo case is not plugin or test
endswitch

Code:
>test.btm test
case is test
>test.btm plugin
case is not plugin or test...

Read more

Viewing all articles
Browse latest Browse all 1750