no, in this case viewData.Customer is a CorporateCustomer, it outputs 'suit'

On Sat, Jan 10, 2009 at 4:29 PM, Ayende Rahien <[email protected]> wrote:

> viewData is not individual customer nor corporate customer ?
>
>
> On Sat, Jan 10, 2009 at 6:25 PM, Jan Limpens <[email protected]>wrote:
>
>> Hello,
>>
>> this is a pretty basic code block:
>>
>>     subView = "xx"
>>     if viewData.Customer isa IndividualCustomer:
>>         subView = "IndividualCustomer"
>>         output "indie"
>>     elif viewData.Customer isa CorporateCustomer:
>>         subview = "CorporateCustomer"
>>         output "suit"
>>     end
>>     output "<br/>subview: ${subView}"
>>
>> this outputs (in the corporate case):
>>
>> suit
>> <br/>subview: xxx
>>
>> which is not what I would expect. Is there a way around this? Seems
>> brail/boo is way more functional that it might appear...
>>
>> --
>> Jan
>>
>>
>>
>
> >
>


-- 
Jan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to