Skip to content

Commit

Permalink
Formula engine: Allow two-argument if() - returns null if false
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Mar 18, 2016
1 parent 2e412df commit 69024df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/formula_function.cpp
Expand Up @@ -113,7 +113,7 @@ class dir_function : public function_expression {
class if_function : public function_expression {
public:
explicit if_function(const args_list& args)
: function_expression("if", args, 3, -1)
: function_expression("if", args, 2, -1)
{}

private:
Expand Down

0 comments on commit 69024df

Please sign in to comment.