Categories > OpenTBS general >

condition inside a condition

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Joao Gil
Date: 2013-05-08
Time: 15:59

condition inside a condition

Hi, i got another problem --'

Is there a way so we can use an If inside other If?

i'll post an example now
como primeiro outorgante, [base.training_entity; if [val]=‘’;then e o [base.name], como segundo outorgante,
residente na [base.street] – [base.postal_code] – [base.sub_postal_code] [base.postal_description], portador do [base.document],
nº [base.id_doc], [base.document;if [val] = ‘Bilhete de identidade’;then ‘emitido em [base.id_doc_emission],
pelo arquivo de identificação de [base.id_doc_arquive]’;else ‘válido até [base.id_doc_expiration;frm=’dd-mm-yyyy’]’]

this gives me this error: <br /><b>TinyButStrong Error</b> : can't found the end of the tag '&#91;base.training_entity; if &#91;val]=...'.<br />
By: Skrol29
Date: 2013-05-09
Time: 23:48

Re: condition inside a condition

Hi,

I don't know if such encapsulation can work has expected. Nevertheless your coding seems wrong: [base.document] seems no closed correctly.
Your snipped should end like this:
frm=’dd-mm-yyyy’]’]]