HISE Logo Forum
    • Categories
    • Register
    • Login

    How to: SNEX logical inversion?

    Scheduled Pinned Locked Moved Scripting
    2 Posts 2 Posters 114 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Dan KorneffD
      Dan Korneff
      last edited by

      I'm probably just being stupid, but I can't get the logical inversion to work in SNEX.

      I'm initializing a variable like this:

      bool A = false;
      

      In my script, I'm running this but it's not inverting:

      A = !A;
      

      What am I doing wrong?

      Dan Korneff - Producer / Mixer / Audio Nerd

      Christoph HartC 1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart @Dan Korneff
        last edited by

        I think a bool is just an integer in disguise in SNEX. Try

        A = 1 - A;
        
        1 Reply Last reply Reply Quote 1
        • First post
          Last post

        49

        Online

        1.7k

        Users

        11.7k

        Topics

        101.8k

        Posts