Skip to main content

BasicStats.IsConditionTrue

Declaration#

public virtual bool IsConditionTrue(string condition, StatSource other)

Parameters#

NameDescription
conditionCondition to validate
otherSource 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));    }
}