Error: Expression: Invalid number of functions passed to 'if' (Expecting 3, Returned 2).

Where is the issue:

- Code: Select all
`if[(cash_hand_player_statistics.flg_f_saw AND cash_hand_player_statistics.flg_f_has_position AND cash_hand_summary.cnt_players_f = 2 AND cash_hand_player_statistics.flg_p_3bet)`

AND NOT

(cash_hand_player_statistics.flg_p_4bet or cash_hand_player_statistics.flg_p_4bet_def_opp)

AND NOT

(cash_hand_player_statistics.flg_p_squeeze or cash_hand_player_statistics.flg_p_squeeze_def_opp)

, 1, if[(cash_hand_player_statistics.flg_f_saw AND NOT (cash_hand_player_statistics.flg_f_has_position) AND cash_hand_summary.cnt_players_f = 2 AND cash_hand_player_statistics.flg_p_3bet)

AND NOT

(cash_hand_player_statistics.flg_p_4bet or cash_hand_player_statistics.flg_p_4bet_def_opp)

AND NOT

(cash_hand_player_statistics.flg_p_squeeze or cash_hand_player_statistics.flg_p_squeeze_def_opp)

, 2, if[(cash_hand_player_statistics.flg_f_saw AND cash_hand_player_statistics.flg_f_has_position AND cash_hand_summary.cnt_players_f = 2 AND cash_hand_player_statistics.flg_p_3bet_def_opp)

AND NOT

(cash_hand_player_statistics.flg_p_4bet or cash_hand_player_statistics.flg_p_4bet_def_opp)

AND NOT

(cash_hand_player_statistics.flg_p_squeeze or cash_hand_player_statistics.flg_p_squeeze_def_opp)

, 3, if[(cash_hand_player_statistics.flg_f_saw AND NOT (cash_hand_player_statistics.flg_f_has_position) AND cash_hand_summary.cnt_players_f = 2 AND cash_hand_player_statistics.flg_p_3bet_def_opp)

AND NOT

(cash_hand_player_statistics.flg_p_4bet or cash_hand_player_statistics.flg_p_4bet_def_opp)

AND NOT

(cash_hand_player_statistics.flg_p_squeeze or cash_hand_player_statistics.flg_p_squeeze_def_opp)

, 4, 5]]]]