DarkBASIC Professional Help Wiki
Advertisement


Syntax


Value = WRAP( Current Value, Min Value, Max Value)


Description


This function will return the Current Value unless it is outside of the range specified. If it is outside the range the function will wrap the value around to bring it back within the range.
Advertisement