Page 1 of 1

Custom string

PostPosted: Tue Jul 10, 2018 2:37 pm
by Bill_Balas
Hi,

the following expression isn't accepted, on creating a custom stat:

0 not in (cash_hand_summary.card_1 % 13, cash_hand_summary.card_2 % 13, cash_hand_summary.card_3 % 13)

Tried to change it, unsuccessfully, to:

(cash_hand_summary.card_1 % 13 ≠ 0 or cash_hand_summary.card_2 % 13 ≠ 0 or cash_hand_summary.card_3 % 13 ≠ 0)

How should it be presented?
Thx

Re: Custom string

PostPosted: Wed Jul 11, 2018 2:12 am
by WhiteRider
The commas in your first expression will cause problems. For 'not equal to' you can use either != or <>.
For example:
cash_hand_summary.card_1 % 13 <> 0

If you want to check that none of the cards are aces you will need to use AND, not OR.

(cash_hand_summary.card_1 % 13 <> 0 and cash_hand_summary.card_2 % 13 <> 0 and cash_hand_summary.card_3 % 13 <> 0)

Re: Custom string

PostPosted: Wed Jul 11, 2018 3:21 am
by Bill_Balas
Great, thx!

highfalutin