Text box value compare and updation

1.They are two text boxes A and B.
2.I want compare B value with A value.
3.If B value is more than the A value then B should updated with A's value

How is one text value more or less than another text value?

What have you tried, where are you stuck?

text box with numeric values

Text box or number entry?

What is the trigger for comparison - when a button is pressed? as user types?

What is the logic for comparison?

is ABC?abc?

is 00 < 1?

is a string with greater length considered "more"

number entry
if B=2 and A=1 then B should replaced with the value 1

What is the trigger for comparison - when a button is pressed? as user types?

Also, as @ukmoose said...

Post your flow & we can help.

after the user types the values

if you only want numbers you would be better using the numerical entry. Otherwise you will also have to filter out any non-numerical values. or have you already done that part?

[{"id":"350b177f.b74428","type":"tab","label":"Flow 6","disabled":false,"info":""},{"id":"68a9c66b.b5bb28","type":"ui_text_input","z":"350b177f.b74428","name":"","label":"","tooltip":"","group":"6fc47e33.27b03","order":1,"width":0,"height":0,"passthru":true,"mode":"number","delay":300,"topic":"","x":150,"y":160,"wires":[["cada34b5.58c3a8"]]},{"id":"f8e27430.2ee1e8","type":"ui_text_input","z":"350b177f.b74428","name":"","label":"","tooltip":"","group":"aa6686a8.5133d8","order":0,"width":0,"height":0,"passthru":true,"mode":"number","delay":300,"topic":"","x":130,"y":240,"wires":[["bdb1191f.54d048"]]},{"id":"cada34b5.58c3a8","type":"change","z":"350b177f.b74428","name":"","rules":[{"t":"set","p":"A","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":160,"wires":[["c9222580.0f77e8"]]},{"id":"bdb1191f.54d048","type":"change","z":"350b177f.b74428","name":"","rules":[{"t":"set","p":"B","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":240,"wires":[["c9222580.0f77e8"]]},{"id":"c9222580.0f77e8","type":"function","z":"350b177f.b74428","name":"comp","func":"msg1={};\nmsg2={};\n\n\n\n\n\nmsg.payload1  = parseInt((flow.get(\"A\") || \"0\"));\n\nmsg.payload2 = parseInt((flow.get(\"B\") || \"0\"));\nif( parseInt((flow.get(\"B\") || \"0\")) >parseInt((flow.get(\"A\") || \"0\")))\n{\n   msg.payload2=  parseInt((flow.get(\"A\") || \"0\"));\n\n}\n\nvar m1=msg.payload1 & 0xff;\nvar m2=msg.payload1 & 0xff;\nmsg1.payload=m1;\nmsg2.payload=m2;\nreturn [msg1,msg2];","outputs":2,"noerr":0,"x":450,"y":180,"wires":[["245e3aca.769906"],["f8e27430.2ee1e8","2c6952da.f6214e"]]},{"id":"245e3aca.769906","type":"debug","z":"350b177f.b74428","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":610,"y":140,"wires":[]},{"id":"2c6952da.f6214e","type":"debug","z":"350b177f.b74428","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":660,"y":220,"wires":[]},{"id":"6fc47e33.27b03","type":"ui_group","z":"","name":"Group 1","tab":"2b725d60.ea8252","order":1,"disp":true,"width":"6","collapse":false},{"id":"aa6686a8.5133d8","type":"ui_group","name":"Group 2","tab":"2b725d60.ea8252","order":2,"disp":true,"width":6},{"id":"2b725d60.ea8252","type":"ui_tab","z":"","name":"Ejecter Setting","icon":"dashboard","order":7,"disabled":false,"hidden":false}]

image

[{"id":"f96dbf65.edfe8","type":"ui_numeric","z":"b9b342e5.1151","name":"","label":"numeric","tooltip":"","group":"8591d9ef.0820a8","order":0,"width":0,"height":0,"passthru":true,"topic":"num1","format":"{{value}}","min":0,"max":10,"step":1,"x":140,"y":140,"wires":[["a1ff23d.f77d9e"]]},{"id":"2f11eeea.54e102","type":"ui_numeric","z":"b9b342e5.1151","name":"","label":"numeric","tooltip":"","group":"8591d9ef.0820a8","order":0,"width":0,"height":0,"passthru":true,"topic":"num2","format":"{{value}}","min":0,"max":10,"step":1,"x":140,"y":180,"wires":[["4177e92b.bbf878"]]},{"id":"a1ff23d.f77d9e","type":"change","z":"b9b342e5.1151","name":"","rules":[{"t":"set","p":"num1","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":140,"wires":[["6409faf2.3287d4"]]},{"id":"4177e92b.bbf878","type":"change","z":"b9b342e5.1151","name":"","rules":[{"t":"set","p":"num2","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":180,"wires":[["bc0e4fad.41379"]]},{"id":"bc0e4fad.41379","type":"switch","z":"b9b342e5.1151","name":"","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":"num1","vt":"flow"}],"checkall":"true","repair":false,"outputs":1,"x":450,"y":180,"wires":[["f96dbf65.edfe8"]]},{"id":"6409faf2.3287d4","type":"switch","z":"b9b342e5.1151","name":"","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":"num2","vt":"flow"}],"checkall":"true","repair":false,"outputs":1,"x":450,"y":140,"wires":[["2f11eeea.54e102"]]},{"id":"8591d9ef.0820a8","type":"ui_group","z":"","name":"Data new","tab":"c674279.707bcd8","order":1,"disp":false,"width":"10"},{"id":"c674279.707bcd8","type":"ui_tab","z":"","name":"Greenhouse","icon":"dashboard","order":13}]
  1. if num2 > num1 then only num2 replaced with the value of num1
[{"id":"350b177f.b74428","type":"tab","label":"Flow 6","disabled":false,"info":""},{"id":"68a9c66b.b5bb28","type":"ui_text_input","z":"350b177f.b74428","name":"","label":"","tooltip":"","group":"6fc47e33.27b03","order":1,"width":0,"height":0,"passthru":true,"mode":"number","delay":300,"topic":"","x":150,"y":160,"wires":[["cada34b5.58c3a8"]]},{"id":"f8e27430.2ee1e8","type":"ui_text_input","z":"350b177f.b74428","name":"","label":"","tooltip":"","group":"aa6686a8.5133d8","order":0,"width":0,"height":0,"passthru":true,"mode":"number","delay":300,"topic":"","x":130,"y":240,"wires":[["bdb1191f.54d048"]]},{"id":"cada34b5.58c3a8","type":"change","z":"350b177f.b74428","name":"","rules":[{"t":"set","p":"A","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":160,"wires":[["c9222580.0f77e8"]]},{"id":"bdb1191f.54d048","type":"change","z":"350b177f.b74428","name":"","rules":[{"t":"set","p":"B","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":240,"wires":[["c9222580.0f77e8"]]},{"id":"c9222580.0f77e8","type":"function","z":"350b177f.b74428","name":"comp","func":"msg1={};\nmsg2={};\n\n\n\n\n\nmsg.payload1  = parseInt((flow.get(\"A\") || \"0\"));\n\nmsg.payload2 = parseInt((flow.get(\"B\") || \"0\"));\nif( parseInt((flow.get(\"B\") || \"0\")) >parseInt((flow.get(\"A\") || \"0\")))\n{\n   msg.payload2=  parseInt((flow.get(\"A\") || \"0\"));\n\n}\n\nvar m1=msg.payload1 & 0xff;\nvar m2=msg.payload1 & 0xff;\nmsg1.payload=m1;\nmsg2.payload=m2;\nreturn [msg1,msg2];","outputs":2,"noerr":0,"x":450,"y":180,"wires":[["245e3aca.769906"],["f8e27430.2ee1e8","2c6952da.f6214e"]]},{"id":"245e3aca.769906","type":"debug","z":"350b177f.b74428","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":610,"y":140,"wires":[]},{"id":"2c6952da.f6214e","type":"debug","z":"350b177f.b74428","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":660,"y":220,"wires":[]},{"id":"6fc47e33.27b03","type":"ui_group","z":"","name":"Group 1","tab":"2b725d60.ea8252","order":1,"disp":true,"width":"6","collapse":false},{"id":"aa6686a8.5133d8","type":"ui_group","name":"Group 2","tab":"2b725d60.ea8252","order":2,"disp":true,"width":6},{"id":"2b725d60.ea8252","type":"ui_tab","z":"","name":"Ejecter Setting","icon":"dashboard","order":7,"disabled":false,"hidden":false}]

yes replaced it with numeric entry

1.They are two numeric entry A and B.
2.I want compare B value with A value.
3.If B value is more than the A value then B should updated with A's value otherwise no change

[{"id":"350b177f.b74428","type":"tab","label":"Flow 6","disabled":false,"info":""},{"id":"68a9c66b.b5bb28","type":"ui_text_input","z":"350b177f.b74428","name":"","label":"","tooltip":"","group":"6fc47e33.27b03","order":1,"width":0,"height":0,"passthru":true,"mode":"number","delay":300,"topic":"","x":150,"y":160,"wires":[["cada34b5.58c3a8"]]},{"id":"f8e27430.2ee1e8","type":"ui_text_input","z":"350b177f.b74428","name":"","label":"","tooltip":"","group":"aa6686a8.5133d8","order":0,"width":0,"height":0,"passthru":true,"mode":"number","delay":300,"topic":"","x":130,"y":240,"wires":[["bdb1191f.54d048"]]},{"id":"cada34b5.58c3a8","type":"change","z":"350b177f.b74428","name":"","rules":[{"t":"set","p":"A","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":160,"wires":[["c9222580.0f77e8"]]},{"id":"bdb1191f.54d048","type":"change","z":"350b177f.b74428","name":"","rules":[{"t":"set","p":"B","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":240,"wires":[["c9222580.0f77e8"]]},{"id":"c9222580.0f77e8","type":"function","z":"350b177f.b74428","name":"comp","func":"msg1={};\nmsg2={};\n\n\n\n\n\nmsg.payload1  = parseInt((flow.get(\"A\") || \"0\"));\n\nmsg.payload2 = parseInt((flow.get(\"B\") || \"0\"));\nif( parseInt((flow.get(\"B\") || \"0\")) >parseInt((flow.get(\"A\") || \"0\")))\n{\n   msg.payload2=  parseInt((flow.get(\"A\") || \"0\"));\n\n}\n\nvar m1=msg.payload1 & 0xff;\nvar m2=msg.payload1 & 0xff;\nmsg1.payload=m1;\nmsg2.payload=m2;\nreturn [msg1,msg2];","outputs":2,"noerr":0,"x":450,"y":180,"wires":[["245e3aca.769906"],["f8e27430.2ee1e8","2c6952da.f6214e"]]},{"id":"245e3aca.769906","type":"debug","z":"350b177f.b74428","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":610,"y":140,"wires":[]},{"id":"2c6952da.f6214e","type":"debug","z":"350b177f.b74428","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":660,"y":220,"wires":[]},{"id":"6fc47e33.27b03","type":"ui_group","z":"","name":"Group 1","tab":"2b725d60.ea8252","order":1,"disp":true,"width":"6","collapse":false},{"id":"aa6686a8.5133d8","type":"ui_group","name":"Group 2","tab":"2b725d60.ea8252","order":2,"disp":true,"width":6},{"id":"2b725d60.ea8252","type":"ui_tab","z":"","name":"Ejecter Setting","icon":"dashboard","order":7,"disabled":false,"hidden":false}]

Hi,
that is a much better explanation and since its with an amost complete flow, much easier to assist you.

This works...

[{"id":"f7ac3d0.5807bc","type":"ui_text_input","z":"c1d29861.ceccf8","name":"","label":"Numeric input A","tooltip":"","group":"5992d06.04ed33","order":1,"width":0,"height":0,"passthru":true,"mode":"number","delay":300,"topic":"A","x":160,"y":160,"wires":[["4e3539ec.44bb18"]]},{"id":"b486dfd9.e220f","type":"ui_text_input","z":"c1d29861.ceccf8","name":"","label":"Numeric input B","tooltip":"","group":"bffe1524.ce91e8","order":0,"width":0,"height":0,"passthru":true,"mode":"number","delay":300,"topic":"B","x":160,"y":240,"wires":[["3329c994.017c06"]]},{"id":"4e3539ec.44bb18","type":"change","z":"c1d29861.ceccf8","name":"","rules":[{"t":"set","p":"A","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":320,"y":160,"wires":[["bac8238f.ef12c"]]},{"id":"3329c994.017c06","type":"change","z":"c1d29861.ceccf8","name":"","rules":[{"t":"set","p":"B","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":320,"y":240,"wires":[["bac8238f.ef12c"]]},{"id":"bac8238f.ef12c","type":"function","z":"c1d29861.ceccf8","name":"comp","func":"msg.A = parseInt((flow.get(\"A\") || \"0\"));\nmsg.B = parseInt((flow.get(\"B\") || \"0\"));\n\nif(msg.B > msg.A)\n{\n    node.warn(`B (${msg.B}) is greater than A (${msg.A})`)\n    msg.payload = msg.A;\n    return [msg,msg];\n}\n\nreturn [msg,null];","outputs":2,"noerr":0,"x":470,"y":180,"wires":[["400ca594.9a09fc"],["b486dfd9.e220f","c715d27b.db3c5"]]},{"id":"400ca594.9a09fc","type":"debug","z":"c1d29861.ceccf8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":630,"y":160,"wires":[]},{"id":"c715d27b.db3c5","type":"debug","z":"c1d29861.ceccf8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":630,"y":200,"wires":[]},{"id":"5992d06.04ed33","type":"ui_group","z":"","name":"Group 1","tab":"573763db.48d65c","order":1,"disp":true,"width":"6","collapse":false},{"id":"bffe1524.ce91e8","type":"ui_group","name":"Group 2","tab":"573763db.48d65c","order":2,"disp":true,"width":6},{"id":"573763db.48d65c","type":"ui_tab","z":"","name":"Ejecter Setting","icon":"dashboard","order":7,"disabled":false,"hidden":false}]

not working for me11

Take a look at the flow that @Steve-Mcl gave you.
Compare it to what you have said that you want.

You should be able to get it to work on your own...

actually the flow as written by @Steve-Mcl sortof works. The problem is that while the flow.B changes, the value displayed on the dashbord does not change.

However if you add a very small delay between the function node and the B ui_text_input node, the value will show on the dashboard.
I would aslo suggest changing the delay time in the ui_text_input node to 0.

yes now it is working fine...thank u