PatchOperation.Evaluate - RimWorld-CCL-Reborn/PatchOperationHighlander GitHub Wiki

Given a member field or property with the syntax Type:Member, compare the member's value with the given value. Optionally, log the current value.

Examples:

Usage

<Operation Class="PatchOperation.Evaluate">
  <member>Verse.Prefs:DevMode</member>
  <value>True</value>
  <log>True</log>
  <match Class="PatchOperation.LogText">
    <value>Defmode is on</value>
  </match>
  <nomatch Class="PatchOperation.LogText">
    <value>Defmode is off</value>
  </nomatch>
</Operation>

The smallest you can get

<Operation Class="PatchOperation.Evaluate">
  <member>Verse.Prefs:DevMode</member>
  <match Class="PatchOperation.LogText">
    <value>Defmode is on</value>
  </match>
  <nomatch Class="PatchOperation.LogText">
    <value>Defmode is off</value>
  </nomatch>
</Operation>
⚠️ **GitHub.com Fallback** ⚠️