This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Use of Period In Conditional?

This is a basic question, but I'm hoping someone can help decipher this line of code for me. I can't find a reference anywhere to what the period in this statement does. I assume by the setup that it is some sort of conditional, but would appreciate any further info. Is it Keil specific?

Counter[CounterInstance].Output = FALSE

Parents Reply Children
  • and it works in C++ and Pascal, too!

    In C++, sure --- that's part of its C heritage.

    But, although it's been quite a while since last used any of it, I'm almost certain that Pascal won't accept an integer abused as a boolean, like we were discussing here --- it has to be a "real" Boolean expression there. But then, no dyed-in-the-wool Pascal programmer would ever commit such blasphemy anyway ;-), so it's a non-problem for them, too.

  • "I'm almost certain that Pascal won't accept an integer abused as a boolean"

    Quite so.

    "But then, no dyed-in-the-wool Pascal programmer would ever commit such blasphemy anyway"

    Of course not - that's why I didn't bother to even mention it... ;-)