BasicStats.IsConditionTrue
Declaration#
public virtual bool IsConditionTrue(string condition, StatSource other)Parameters#
| Name | Description |
|---|---|
| condition | Condition to validate |
| other | Source used when other: is requested |
Description#
Check if an expression resolves to true.
Usage#
Example
using NullSave.GDTK.Stats;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(BasicStats source) { string checkValue = "HP > 0"; Debug.Log("Condition: " + source.IsConditionTrue(checkValue)); }
}