<div dir="ltr">I try to make a QGIS plugin to compare 2 different number with 2 input data, and i want to compare input 1 and input 2, but i dont know how to use python condition to compare 2 random number input<br><br>i try it like this<br>
<br> def Compare1(self):<br> input1 = self.ui.lineInput1.text()<br> input2 = self.ui.lineInput2.text()<br> compare = ''<br> if input1 == input2:<br> compare = 'number was same'<br>
else<br> compare = 'number not same'<br> self.ui.textRec1.setPlainText(compare)<br><br>Can someone help me solve this<br><br>Thanks Before<br></div>