The if conditional parses correctly outside of the script tags, but not within. Why would EE care?
Page:
removed
I realize the player isn’t linking up, but I just want to show the conditional in the source
Code:
I’ve included the whole page here, in this entry, there is an av_audio_filename, but not an av_video_filename
{doctype}
<head>
<title>MySite | {exp:weblog:entries weblog="audiovideo" limit="1"} {title}</title>
{meta_general}
{link}
</head>
<body>
{embed="page_elements/header"}
<div id="wrapper">
<div id="content_int">
<div id="static">
<h1>{title} {if member_group == '1'} <a href="/mysystem/index.php?C=edit&M=edit_entry&weblog;_id={weblog_id}&entry;_id={entry_id}" title="Edit Entry" target="_blank"><span style="font: 10px verdana, sans-serif; text-transform: uppercase; color: #900;">Edit This</span></a>{/if}</h1>
<div id="av_container"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div>
[removed][removed]
[removed]
var s1 = new SWFObject("http://www.mydomain.org/jwplayer/player.swf","ply","328","200","9","#FFFFFF");
s1.addParam("allowfullscreen","true");
s1.addParam("allowscriptaccess","always");
{if av_audio_filename}
s1.addParam("flashvars","file=http://www.mydomain.org/audio/{av_audio_filename}");
{/if}
{if av_video_filename}
s1.addParam("flashvars","file=http://www.mydomain.org/video/{av_video_filename}");
{/if}
s1.write("av_container");
[removed]
{/exp:weblog:entries}
{if av_audio_filename}
The conditional works outside of the script tags.
{/if}
</div>
</div>
</div>
<div id="navigation">
{embed="page_elements/left_sidebar"}
</div>
{footer}
</div>
</div>
</body>
</html>
Thanks for your help!
