If Else - metincetin/Karbid GitHub Wiki

In order to make some properties or elements work under specific conditions, if else stataments can be used

if condition==true
//some karbid code
endif
else
//some karbid code
endif

Example

@button{
    if a==2
        width:"100%"
    endif
    else
        width:"128px"
    endif
}