How about:
(bind ?string (call string1 concat string2))
(bind ?symbol (sym-cat ?string))
(build (str-cat (assert ( ?symbol 10
Henrique
---
[EMAIL PROTECTED] wrote:
I am sorry, I should have been more detailed. What I want to do is
somethink like this:
(bind ?string (call string1 concat
stuff). That code is expecting a string in a
particular slot, which is why I was trying to convert a certain fact to
a string. Otherwise I would have to change the code... May be that is a
good thing to do!
Henrique
[EMAIL PROTECTED] wrote:
I think Henrique Lopes Cardoso wrote:
(defrule r1
Hi,
I have two problems.
--- The first:
I have a string which contains an atom. How do I convert it to an atom?
I tried this,which works:
(bind ?string henrique)
(nth$ 1 (explode$ ?string))
Is there a simpler way?
--- The second:
How do I convert a fact-id into a string?
This
Hi,
I am having trouble in getting to multifields and strings.
I was trying to evaluate the contents of a string in a rule's LHS:
(assert (a nice string))
(defrule r1
(a ?x)
?s - (explode$ ?x)
?s - (nice ?what)
=
(printout t ?what crlf)
)
I know I cannot do this. But I cannot
---
[EMAIL PROTECTED] wrote:
I think Henrique Lopes Cardoso wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
Hello,
I was trying to do something like this:
As is often the case, details matter. There's nothing wrong with the
code you've shown; if there's a problem, it's
definition
(e.g. (deftemplate m::the-facts ...)), if that module is the current
module, is irrelevant.
Thanks.
Henrique
[EMAIL PROTECTED] wrote:
I think Henrique Lopes Cardoso wrote:
In the Jess documentation (more specifically in The Jess Language
section) the following is written