User Tools

Site Tools


macros:function:math.min

Function

Math.Min

Void Math.Min(String result, Object x, Object y)
API http://api.avolites.com/10.1/Math.Min.html
description Compares two values and saves the lowest value in a property.
namespace Math
parameter result ( String ) : The property to save the result of the operation in.
x ( Object ) : The value to compare with y.
y ( Object ) : The value to compare with x.
return value Void
Example in

Chase - Double speed:

  <step>Math.Min("Playbacks.Editor.Times.ChaseSpeed", Playbacks.Editor.Times.ChaseSpeed * 2, 3600.0)</step>

This calculates the lower value of (Playbacks.Editor.Times.ChaseSpeed * 2) and 3600.0, and stores the result as string “Playbacks.Editor.Times.ChaseSpeed”.

Also used in
Remarks
You could leave a comment if you were logged in.
macros/function/math.min.txt · Last modified: 2017/11/22 10:03 by icke_siegen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki