Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 23 Feb 2011, 00:21
wpeloquin wpeloquin is offline
 
Join Date: May 2006
Thumbs up vb:if conditional inside a vb:each ... possible?

Is it possible to nest a <vb:if> conditional inside a <vb:each>?

Here is what I am trying to accomplish:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The desired output would be something like

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The tables field value is default to NULL, so maybe i need to change it to force default of 0, or NONE. (this just came to me as im preparing to leave for the day, so i have not tried this out yet).

Any help would be appreciated. I've tried things like != '0', != NULL, != 'NULL', !='', etc. I've also tried various syntax for the 'full_list.class_3' part of the if conditional, no joy.

--------------- Added 23 Feb 2011 at 22:22 ---------------

Looks like I posted prematurely again! Hopefully this will help others in the future though.


SOLUTION!
As you can see, i changed up the syntax in the IF conditional. I also took my previous advice and changed the database field from a DEFAULT NULL to a DEFAULT '0'.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Attached Images
File Type: png class_level.png (5.9 KB, 5 views)

Last edited by wpeloquin; 23 Feb 2011 at 22:27. Reason: Auto-Merged DoublePost
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 03:25.

Layout Options | Width: Wide Color: