This commit is contained in:
2026-07-02 15:54:39 -06:00
commit 9883323161
17470 changed files with 4470592 additions and 0 deletions
@@ -0,0 +1,25 @@
<?php
namespace Gravity_Forms\Gravity_SMTP\Models\Traits;
trait Can_Compare_Dynamically {
public function compare( $value_a, $value_b, $op ) {
switch( $op ) {
default:
case '=':
return $value_a == $value_b;
case '>':
return $value_a > $value_b;
case '>=':
return $value_a >= $value_b;
case '<':
return $value_a < $value_b;
case '<=':
return $value_a <= $value_b;
case '!=':
return $value_a != $value_b;
}
}
}