KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums KX Academy Function of syntax ` Re: Function of syntax `

  • ypangalela

    Member
    January 23, 2022 at 12:00 am

    Hi Michaela, thanks for the answer

    Now I’m studying about function and encountering the same problem about backtick.

    Let me give 2 examples.

     

    Example #1:

    b:6
    f:{b:42; `b set x; b}

    f[98]
    b

     

    Example #2:

    b:6
    f:{b:42; b set x; b}

    f[98]
    b

     

    In example #1, the value of b becomes 98, but in example #2, it stays 6

    In this case, what’s the function of backtick?

    Thanks