Dear community, I am new to the world of power platforms. I have the following problem and just can't seem to solve it. I can do both, but not the two combined.
What I am trying to do:
I have a list in SharePoint and I now search it with PowerApps and the following code:
Search('MY LIST';TextBox1.Value;"Title") // This works
But now I want to include a toggle that only shows me values that have a certain value in the "Flow Variable" column. When turned off, it should show all again.
If(Toggle1.Checked;Filter('MY LIST';'Flow Variable' = "VALUE");'MY LIST') // This works also
But now I want to combine both and I just can't get it to work. How do I combine these two codes?
Here is a Screenshot of the App:

As always I am incredibly grateful for your support