Hi, Im trying to set a variable based on the content of a textinput. I have the textinput default set to a Image control which returns the base64. Rather then put all the base 64 in below. Is there a way i can shorten it up with, If(Startswith(TextInput10.Text, "data:image/svg+xml", Set(Var......?
If(TextInput10.Text = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNv........", Set(VarPDFImage2, JSON(Base64_Blank.Image, IncludeBinaryData)), Set(VarPDFImage2, JSON(Base64_Img2.Image)))