I am trying to build a GUI with a checkbox linked to a global variable. When users click on the checkbox it should automaticaly update the global variable.
I saw a similar post in the forum about a checkbox in the dashboard GUI. I tried implementing this solution with a simple hotlink but when I click on the checkbox it does not change the global variable and when I open the Main Control GUI again the checkbox is checked. As if the hotlink does not allow to change the variable but the variable change change the state of the checkbox.
I also tried with a bit of code to manually change the global variable with "On Press" in the GUI. I could change the data but it switches from 1 to 0.00 and then 1.00. So maybe the data type changed also I asked for an integer in the global variable and in the GUI.
I don't understand where is my mistake.
Here is a sample model with the problem.