Ambert
10/11/2023, 2:14 PMAmbert
10/11/2023, 2:15 PMAmbert
10/11/2023, 2:15 PMcontent.Url.Url()Ambert
10/11/2023, 2:16 PMAmbert
10/11/2023, 2:17 PM@content.Url in front of your if/else, then you'll see what is being checkedBishal Tim
10/11/2023, 3:40 PMBishal Tim
10/11/2023, 3:43 PMAmbert
10/11/2023, 3:54 PMcontent.Url returns? I guess its a mediapickerproperty then,
Try content.Url.Url()
As you named the mediapicker Url and you need the Url() property of your media itemBishal Tim
10/11/2023, 4:00 PMAmbert
10/11/2023, 4:00 PMAmbert
10/11/2023, 4:01 PMcsharp
if(string.isNullOrWhiteSpace(content.Url.Url())) it might workAmbert
10/11/2023, 4:03 PMBishal Tim
10/11/2023, 4:15 PMBishal Tim
10/11/2023, 4:19 PMD_Inventor
10/11/2023, 4:32 PMIPublishedElement, it doesn't have a url property. You need to use the weakly typed method .Value<>() to get the property value that you need or add a type check to your logic.Ambert
10/11/2023, 4:46 PMBishal Tim
10/12/2023, 1:53 AM