<# if ( choices.length ) { #>
{{ fusionBuilderText.add_new_logic }}
<# _.each( options, function( option ) {
var operator = option.operator,
value = option.value,
hasOr = 'or' === operator ? 'has-or' : '',
field = option.field,
additionals = 'undefined' !== typeof option.additionals ? option.additionals: null,
comparison = option.comparison.split( ' ' ).join( '-' ).toLowerCase(),
currentChoice = choices.find( ( { id } ) => id === field );
// return eaerly if option no longer exists.
if ( 'undefined' === typeof currentChoice ) {
return;
}
#>
-