MathSolver.IsTrue
Declaration#
public bool IsTrue(string condition)Parameters#
| Name | Description |
|---|---|
| condition | Condition to evaluate |
Description#
Check if a condition is true
Usage#
Example
using NullSave.GDTK;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod() { MathSolver solver = new MathSolver();
bool result1 = solver.IsTrue("1 > 2"); bool result2 = solver.IsTrue("2 > 1"); }
}