Meaning of exclamation point in front of variable?


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2009
    Location
    Colorado
    Posts
    378

    Question Meaning of exclamation point in front of variable?

    I have encountered some PBPro code that has an exclamation point in front of some of the declared variables. I find no definition of that syntax in the PBPro manual. For example: IF !Plugged THEN

    Can anyone tell me what the exclamation point means?? I see it used on the variable in the code contained in an INCLUDE file and not used in the main code for the same variable name.

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    IF NOT Plugged THEN

    It's listed under "Logical Operators".
    Page 43 in the latest manual.
    <br>
    DT

  3. #3
    Join Date
    Mar 2009
    Location
    Colorado
    Posts
    378


    Did you find this post helpful? Yes | No

    Default Duh!

    Quote Originally Posted by Darrel Taylor View Post
    IF NOT Plugged THEN

    It's listed under "Logical Operators".
    Page 43 in the latest manual.
    <br>
    Thanks, Darrel. I feel stupid to not have found that. I looked right over it. I now understand the logic of your code better.

Similar Threads

  1. EEPROM Variables (EE_Vars.pbp)
    By Darrel Taylor in forum Code Examples
    Replies: 79
    Last Post: - 26th October 2012, 00:06
  2. Variable PWM PIC18F2431
    By trr1985 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 12th June 2009, 06:03
  3. Floating Point Display Problem (serial string out)
    By Cash Olsen in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 20th December 2007, 02:03
  4. Help with sound command in 2 programs
    By hyperboarder in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th July 2007, 20:36
  5. WORD vs BYTE variable lengths
    By bartman in forum General
    Replies: 0
    Last Post: - 28th November 2005, 21:16

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