January 15, 2021, 06:07:17 PM

Author Topic: [bb] QLimit by Neochrome [ 1+ years ago ]  (Read 539 times)

Offline BlitzBot

  • Jr. Member
  • **
  • Posts: 1
[bb] QLimit by Neochrome [ 1+ years ago ]
« on: June 29, 2017, 12:28:42 AM »
Title : QLimit
Author : Neochrome
Posted : 1+ years ago

Description : This function basically just limits the values you use
IE.
e=45
retval = QLimit(e,0,30)

retval is 30.

This is a cheap nock off from Marks Blitz 2 Amiga QLimit command, Very handy!!


Code :
Code: BlitzBasic
  1. Function QLimit(Quick,Low,High)
  2.    If Quick>High then Quick=High
  3.    If Quick<Low then Quick=Low
  4.    Return Quick
  5. End function


Comments : none...

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal