問題があり、いくつかの方法を試しましたが、解決策が見つかりません。
問題(Objective-Cなど)0から始まる進行状況があり、反復ごとに値が3ポイント増加します。つまり、0、3、6、9、12、15など
さて、カウンターが10を超えるとアラートが表示される必要がありますが、10、20、30、40などを超える場合のみです。中間値(3、6、9など)では表示しないでください。
例えば:
0 -> nothing
3 -> nothing
6 -> nothing
9 -> nothing
12 -> ALERT!!
15 -> nothing
18 -> nothing
21 -> ALERT!!
24 -> nothing
27 -> nothing
30 -> ALERT!!
33 -> nothing
36 -> nothing
[...]
何か案が?
ありがとう!!