Randomly Selecting Block From A List


Author
Message
Whitman
Whitman
Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)
Group: Forum Members
Posts: 6, Visits: 10

Hi,


I have several blocks that fall into a given category and I'd like to show one block of each category in random order, along with other blocks that are the only kind in their category.


For example:


<expt >
/blocks = [1-2=noreplace(BlockType1, BlockType2)]
</expt>


Where BlockType1 is a category of blocks that include 3 different blocks and BlockType2 is always just one block.


I tried using the List element, but the items attribute didn't accept block terms. I also tried using the noreplace() command within a groups attribute in a variables element. For example:


<variables>
/ group = (1 of 1) (BlockType1=noreplace(BlockA, BlockB, BlockC))
</variables>


Is there a parsimonious way of achieving this without creating all the iterations in the form of expt elements?



Thank you!


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Whitman - 12 Years Ago
Dave - 12 Years Ago
Whitman - 12 Years Ago
Dave - 12 Years Ago
Dave - 12 Years Ago
Whitman - 12 Years Ago
                         [quote]Sorry to ask when it ended up being such a simple thing[/quote]...
Dave - 12 Years Ago
                             Haha noted
Whitman - 12 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search