vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| for example I have this: for each product where prod-name begins "a": display prod-name pack skip. end. I wanted to put in a conditional "break by" using a string like so: def var by-name as char init "break by prod-name". for each product where prod-name begins "a" by-name: display prod-name pack skip. end. this failed. Then I tried it with a logical like so: def var by-name as log init no. for each product where prod-name begins "a" if by-name = no then break by pack else break by prod-name: display prod-name pack skip. end. This also failed. Is there a way of doing this without using a .i file? Thanks Martin |
| |||
| Try this: /* Using an if function rather than an if statement. */ for each product where prod-name begins "a" break by if by-name = no then pack else prod-name: display prod-name pack skip. end. <martin.doherty@gmail.com> wrote in message news:1138103879.815153.133160@g49g2000cwa.googlegr oups.com... > for example I have this: > > for each product where prod-name begins "a": > display prod-name pack skip. > end. > > I wanted to put in a conditional "break by" using a string like so: > > def var by-name as char init "break by prod-name". > > for each product where prod-name begins "a" by-name: > display prod-name pack skip. > end. > > this failed. > > Then I tried it with a logical like so: > > def var by-name as log init no. > > for each product where prod-name begins "a" > if by-name = no then break by pack > else break by prod-name: > display prod-name pack skip. > end. > > This also failed. Is there a way of doing this without using a .i file? > > Thanks Martin > |