1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Test 'switch'

Discussion in 'T&T - Aliases' started by Rick Reinckens, May 26, 2017.

  1. Rick Reinckens

    Joined:
    Oct 18, 2009
    Messages:
    96
    Likes Received:
    4
    This is for enabling or disabling individual lines of test code. You would comment out one of the ALIAS definitions.

    ALIAS TEST_CODE REM
    TEST_CODE Dir

    (The line does nothing because it begins with REM.)

    ALIAS TEST_CODE IF 1=1
    TEST_CODE Dir

    The command works.
     
  2. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,300
    Likes Received:
    39
    Nerdy quibble: For syntactic correctness, there should be two equals signs in the IF condition.
     

Share This Page