Using a macro inside a loop condition
Date : March 29 2020, 07:55 AM
I think the issue was by ths following , I am programing in C++ and I defined a variable as a macro, and I want to return a value from a function using the macro. , Macros are replaced. So in the end you'll get return (10;/2);
|
Condition on DataLayer variables inside a macro
Date : March 29 2020, 07:55 AM
I hope this helps . Update: It seems to work, so I'm adding the code. I think I figured it out (writing problems down seems to help solving them). To achieve this, what I need to do is: function()
{
if({{Foo}})
{
return {{Bar}};
}
return null;
}
|
How to check for condition inside a macro?
Date : March 29 2020, 07:55 AM
it helps some times I have defined a macro like this, , That was easy, #define SELECTED_SITE_ID ((SITE_MANAGER.selectedSite.siteCollectionIdentifier <= 0.0) ? 1 : SITE_MANAGER.selectedSite.siteCollectionIdentifier)
|
Can you use a or (||) operator inside a ternary operator condition statment in to determina if null or undefined
Date : March 29 2020, 07:55 AM
wish helps you This is (property === undefined) || (null), not testing the property for either being undefined or being null. To do that, just write event.feature.getProperty('altitudeMode') == null
|
How to create a macro on a condition inside a if statement
Date : March 29 2020, 07:55 AM
|