[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] mv_credit_card_reference
Quoting Javier Martin (martin@trymedia.com):
> My problem is that I need to check things at PROFILE time rather than ITL
> time and these checks should be able to abort the profile, so I have no
> options besides &calc. :(
It is easy to do:
&calc=<<EOF
delete $CGI->{tmp_result};
return $CGI->{tmp_result} = 1 if $good;
return if $bad;
EOF
tmp_result=mandatory Your calc failed!
Though obviously it would be much cleaner if we could do it another
way.
I think in the next version of IC I will put a new primitive in:
&version=4.9
Then we will change the semantics for calc and perl when that is
in force.
--
Red Hat, Inc., 3005 Nichols Rd., Hamilton, OH 45013
phone +1.513.523.7621 <mheins@redhat.com>
Nature, to be commanded, must be obeyed. -- Francis Bacon