VideoHelp Forum
+ Reply to Thread
Results 1 to 4 of 4
Thread
  1. HI PLEASE HELP A CAT

    I have
    %variableA%=100
    %variableB%=150

    I would like create a %variableC% that contains the value of the lower between variable A and B, in this case %variableC%=100

    example:

    %variableA%=23
    %variableB%=22

    ----------->%variableC% become 22

    another

    %variableA%=50
    %variableB%=1000

    ----> variable C become 1000

    how can I do? thanks
    Quote Quote  
  2. Member
    Join Date
    Sep 2012
    Location
    Australia
    Search Comp PM
    if %variableA% GTR %variableB% (
    Set variableC=%variableB%
    ) else (
    Set variableC=%variableA%
    )
    Quote Quote  
  3. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    Your 3rd example is inconsistent with your request: 50 < 1000.
    %variableA%=50
    %variableB%=1000

    ----> variable C become 1000
    Scott
    Last edited by Cornucopia; 30th Oct 2014 at 10:46.
    Quote Quote  
  4. umh sorry, I'm a head of cat
    Quote Quote  
Visit our sponsor! Try DVDFab and backup Blu-rays!