Arty
Well-known member
This is a double request for 2 similar features for template system:
 
Several suggestions for possible syntax:
 
1. For style properties only:
	
	
	
		
Currently this will trigger error because property does not exist
 
2. For anything:
	
	
	
		
or
	
	
	
		
This syntax could be extended further with ability to add more different checks based on keyword before item name.
				
			- Ability to check if style property exists
 - Ability to check if class exists
 
Several suggestions for possible syntax:
1. For style properties only:
		Code:
	
	<xen:if is="@propertyName">
	2. For anything:
		Code:
	
	<xen:if is="exists(property @propertyName)"> - for style properties
<xen:if is="exists(@propertyName)"> - also for style properties. @ before name gives away that it is style property
<xen:if is="exists(class XenForo_Application)"> - for class
	
		Code:
	
	<xen:if is="exists property @propertyName"> - for style properties
<xen:if is="exists @propertyName"> - also for style properties. @ before name gives away that it is style property
<xen:if is="exists class XenForo_Application"> - for class
	
		
		Upvote
		0