How to do and(all) logic?

So I have got a inputaction and event tick, which I want to feed into a and(all) logic gate, all I can find is “AND Boolean”. what would you recommend I do?

InputActions have a press and release function, so on press, set a boolean to true, on release, set it to false. on tick, branch on the boolean.