You can do that by using the “Set Bool” method node. You can find the method node under “Functions/Reflected/Animator/Methods/Set Bool”, or of course simply search for it in the browser 🙂
There also of course exist similar method node for other type of parameters (Set Float, Set Integer etc), as well as nodes for Get Float, Get Integer etc.