forked from notfood/PatchOperationHighlander
-
Notifications
You must be signed in to change notification settings - Fork 0
PatchOperation.Evaluate
Meru edited this page Jul 23, 2021
·
1 revision
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.
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>