Module Values.ComponentConditionProperty

Represents a conditional expression to set a component property. Use ComponentConditionProperty to set a property to different values conditionally, based on the value of another property.

Sourcetype nonrec t = {
  1. property : String_.t option;
    (*

    The name of the conditional property.

    *)
  2. field : String_.t option;
    (*

    The name of a field. Specify this when the property is a data model.

    *)
  3. operator : String_.t option;
    (*

    The operator to use to perform the evaluation, such as eq to represent equals.

    *)
  4. operand : String_.t option;
    (*

    The value of the property to evaluate.

    *)
  5. then_ : ComponentProperty.t option;
    (*

    The value to assign to the property if the condition is met.

    *)
  6. else_ : ComponentProperty.t option;
    (*

    The value to assign to the property if the condition is not met.

    *)
  7. operandType : String_.t option;
    (*

    The type of the property to evaluate.

    *)
}
Sourceval make : ?property:String_.t -> ?field:String_.t -> ?operator:String_.t -> ?operand:String_.t -> ?then_:ComponentProperty.t -> ?else_:ComponentProperty.t -> ?operandType:String_.t -> unit -> t
Sourceval to_value : t -> Awso.Botodata.value
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t