Good morning I have the following text string in a variable
cad = "perro AND gato AND pajaro AND vaca AND"
Since the string is created automatically, it always adds the AND when concatenating a new element, but to show it, it must be without the last AND.
How can I remove the last AND from the string?