jojacafe
11/25/2015 - 3:15 PM

From http://stackoverflow.com/questions/6601715/how-to-declare-local-variable-in-razor

@{bool isUserConnected = string.IsNullOrEmpty(Model.CreatorFullName);}
@if (isUserConnected)
{ // meaning that the viewing user has not been saved
    <div>
        <div> click to join us </div>
        <a id="login" href="javascript:void(0);" style="display: inline; ">join</a>
    </div>
}