Say I have a published smart contract with a variable:
bool public myvariable = true;
Which is used in the contract later on by way of if's which check whether
myvariable is true or false.
How do I then change that variable, how do I communicate with the contract and what on earth do I tell it, in order to flip
I suspect that this is a very basic question but the lack (absence?) of true beginners solidity information means I have to ask stupid questions. So far I've been using MEW to publish the contracts, and that has an "interact with contract" facility, offering me an ABI/JSON field to enter, presumably, the communication I wish to have with the contract?
Also, how do I stop just anyone triggering the same change?
Really not sure how to proceed from here. One idea I had was to code it so that the true/false state is flipped when a certain precise value of eth is sent to the contract, by my particular address. The precise amount of eth simply serving as a message of sorts. But I don't think that would "permanently" change the true/false, anyway.
Thanks for any suggestions.