I have the following code:

isValid (self value == nil and: [self required == false]) ifTrue: [^true].
self isCorrectType ifFalse: [self validationError: 'value doesn''t coerce to
correct type'. ^false.] ^ self allConditionsValid.

when I try to save this I get a ' Nothing more expected ->' right before '^
self allConditionsValid'.  I'm guessing this is because I have the '^false'
in the second line?

How would I accomplish the same thing - correctly?

Thanks,
Elliot

Reply via email to