Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hey guys!
I have a small problem with ternary condition I want to do:
@foreach(var elem in @Model._imagesRelatios)
{
var node = @Model.NodeById(elem.InnerText);
var des = (@node.description.ToString() != "") ? @node.description.ToString() : "";
}
The "description" is provided under "media", and are grouped by a "Multi Node Tree Picker!.
The problem is that when the field "description" is empty, so it returns is this.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
umbraco.MacroEngines.DynamicXml. Problems with empty field.
Hey guys!
I have a small problem with ternary condition I want to do:
@foreach(var elem in @Model._imagesRelatios)
{
var node = @Model.NodeById(elem.InnerText);
var des = (@node.description.ToString() != "") ? @node.description.ToString() : "";
}
The "description" is provided under "media", and are grouped by a "Multi Node Tree Picker!.
The problem is that when the field "description" is empty, so it returns is this.
umbraco.MacroEngines.DynamicXml
is working on a reply...