It looks like you're new here. Sign in or register to get started.
<?xml version="1.0" encoding="UTF-8" standalone="no"?><process version="5.2.006"> <context> <input/> <output/> <macros/> </context> <operator activated="true" class="process" compatibility="5.2.006" expanded="true" name="Process"> <process expanded="true" height="-20" width="-50"> <operator activated="true" class="generate_data" compatibility="5.2.006" expanded="true" height="60" name="Generate Data" width="90" x="67" y="54"/> <operator activated="true" class="generate_attributes" compatibility="5.2.006" expanded="true" height="76" name="Generate Attributes" width="90" x="232" y="54"> <list key="function_descriptions"> <parameter key="att6" value="if(att1>0,"Positive","Negative")"/> </list> </operator> <connect from_op="Generate Data" from_port="output" to_op="Generate Attributes" to_port="example set input"/> <connect from_op="Generate Attributes" from_port="example set output" to_port="result 1"/> <portSpacing port="source_input 1" spacing="0"/> <portSpacing port="sink_result 1" spacing="0"/> <portSpacing port="sink_result 2" spacing="0"/> </process> </operator></process>
Answers
Example. att6 = "Positive" if att1 > 0 Else "Negative"
Check out the following code:
Thanks a lot!!!!!! 8)