A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
We can use the || or Or operator in power apps to meet your requirement.
Try as following:
If(
varFormTab = "Details2" || varFormTab = "Details",
false,
true
)
More information about Operators and Identifiers in Power Apps for your reference:
https://learn.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/operators
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.