Shuffling variables


Results 1 to 18 of 18

Threaded View

  1. #17
    Join Date
    May 2013
    Location
    australia
    Posts
    2,644


    Did you find this post helpful? Yes | No

    Default Re: Shuffling variables

    ! is the logical not operator afaik , anyway that's the way I use it (its a C thing but works in pbp too)

    I think its the same as the "tilde" ~ but my laptop keyboard makes it hard to find. maybe someone can confirm this


    pin_mode = ! (pin_mode) is the way to read it , if pin_mode is 1 then ! pin_mode becomes 0 or if pin_mode is 0 then ! pin_mode becomes 1
    not to be confused with != which is not equal to

    ps
    just tried it . seems "~ ! not" are all the same thing (on bit and byte vars anyway) for what it worth
    Last edited by richard; - 2nd December 2014 at 05:12. Reason: more

Similar Threads

  1. How about String Variables?
    By mytekcontrols in forum PBP Wish List
    Replies: 40
    Last Post: - 20th January 2015, 12:53
  2. Replies: 2
    Last Post: - 12th November 2014, 07:57
  3. IF - WHILE and variables
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 15th April 2009, 13:01
  4. Using Variables with Debug
    By krohtech in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 17th December 2007, 02:47
  5. Help with using variables
    By jessey in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 19th June 2005, 16:03

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts