limiting to "no less than" zero


Results 1 to 31 of 31

Threaded View

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


    Did you find this post helpful? Yes | No

    Default Re: limiting to "no less than" zero

    Yup, there are always lots of ways.

    Code:
    if buttonB then
        volume = volume - Vstep        ; subtract the step
        if volume.15 then volume = 0   ; zero if it went negative
    endif
    Last edited by Darrel Taylor; - 17th September 2011 at 04:45. Reason: step is a reserved word
    DT

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