NEWTON

NEWTON


Popular tags

    Cairo: Else if statement

    Asked

    4 months ago

    4

    views


    0

    How do you write an else if statement in Cairo?

    This question was originally posted on Triality

      cairocairo-lang

    1 answers

    0

    Currently else if is not supported, just if - else - end. You can still provide the same functionality in different ways, ie using bitwise operation in conditionals or just chaining single if statements as such

    if x == 1:

    #do something

    end

    if x == 2:

    #do something else if

    end

    if x == 3:

    #do something else

    end

    

    This answer was originally posted on Triality

    answered

    4 months ago

    Your answer

    NEWTON

    NEWTON