Message 1 of 5

Not applicable
10-26-2021
04:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone, what is the difference between !el.LookupParameter("Company").HasValue and el.LookupParameter("Company").ToString() != "" ?
foreach (Element el in _AllElements)
{
if (!el.LookupParameter("Company").HasValue || el.LookupParameter("Company").ToString() != "" )
{
//code1
}
}
Why if I have only !el.LookupParameter("Company").HasValue the debugger just skips the execution of code1 but if I have both conditions that's when it actually finds unfilled parameter "Company" and executes everything inside of if statement ?
Solved! Go to Solution.