110,552
社区成员
发帖
与我相关
我的任务
分享
……
<While.Condition>
<mca:CSharpValue x:TypeArguments="x:Boolean">
(NumberBells > 12? NumberBells - 12:NumberBells) >= Counter</mca:CSharpValue>
</While.Condition>
……
While soundBells = new While();
soundBells.DisplayName = "Sound Bells";
soundBells.Condition =
ExpressionServices.Convert<bool>(env => (NumberBells.Get(env) > 12 ? NumberBells.Get(env) - 12 : NumberBells.Get(env)) >= Counter.Get(env));