SC2Mapster Wiki

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.


  • anynumber value
    • Name: Value
  • anynumber min
    • Name: Min
  • anynumber max
    • Name: Max

Return Type: bool[]