Custom string

Discuss how to create custom stats, reports and HUD profiles and share your creations.

Moderators: WhiteRider, kraada, Flag_Hippo, morny

Custom string

Postby Bill_Balas » Tue Jul 10, 2018 2:37 pm

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
Bill_Balas
 
Posts: 157
Joined: Wed Oct 22, 2014 8:57 pm

Re: Custom string

Postby WhiteRider » Wed Jul 11, 2018 2:12 am

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)
WhiteRider
Moderator
 
Posts: 52826
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Custom string

Postby Bill_Balas » Wed Jul 11, 2018 3:21 am

Great, thx!
Bill_Balas
 
Posts: 157
Joined: Wed Oct 22, 2014 8:57 pm


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 1 guest

cron