Project

General

Profile

Actions

User story #17512

open

Create a "condition_from_string_compare" method

Added by Alexis Mousset almost 4 years ago. Updated over 2 years ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
Generic methods
Target version:
-
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
To do
Fix check:
To do
Regression:

Description

 bundle agent rudder_condition_from_string_compare(condition_prefix, string1, string2) {
  classes:
      "${condition_prefix}_reached"   scope => "namespace";
      "${condition_prefix}_true" expression => strcmp("${string1}", "${string2}"), scope => "namespace";
      "${condition_prefix}_false"       not => "${condition_prefix}_true", scope => "namespace";
}
Actions

Also available in: Atom PDF