Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

Triggers/Conditions/Within Bounds

From SC2Mapster Wiki
Jump to: navigation, search

Within Bounds

A logical operator used in condition statements. This will evaluate to true only if the middle expression evaluates to a value between the boundary values. By default, the boundaries are inclusive, so the if the middle value is equal to either boundary value, it will be true.


Logic - min <= value <= max

Galaxy Code

bool WithinBounds ( anynumber value, anynumber min, anynumber max )


Returns true if the Value parameter is in between the Min and Max parameters, or if the Value parameter is equal to either the Min or the Max parameter.


Return Type: bool