Jump to content

Calculation-weird output in merge field


This topic is 2819 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hello,

 

I have an error from the following calculation when inserted as merged text, in that it adds a "0," just before the rest of the merged text. I can't get rid of it. It was not present until I used the "is not" phrases in this calculation to eliminate responses that would not be appropriate for a child using an object-based schedule.

Field into which the merge is placed reads:

"According to the results of the questionnaire, <<Name>> <<scheduleinteractioncalculation>>."

Output looks like this:

"According to the results of the questionnaire, Jeremy 0, may respond well to controlled choice built into the schedule.

Any help greatly appreciated. Here is the calculation:

Let (
phrases = List (
If (Symbolic Representation = "object used in activity" ; "should be presented the schedule object at transition time to carry it to use it in the activity" ) ;
If ( Symbolic Representation = "object symbolic of activity" ; "should carry the object to a recepticle at the location of the activity") ;
If (Symbolic Representation  ≠ "object symbolic of activity" and Symbolic Representation  ≠ "object used in activity"; Overwhelmed if too many items are on a list >=2 ; "* may like to see items diminish as they are completed using an icon-based schedule due to a tendency to be overwhelmed with multiple items" ) ;
If (Symbolic Representation  ≠ "object symbolic of activity" and Symbolic Representation  ≠ "object used in activity" and Can't stop >= 2 ; "* may like to have the opportunity to view completed schedule items since there is a drive to finish" ) ;
If ( Symbolic Representation  ≠ "object symbolic of activity" and Symbolic Representation  ≠ "object used in activity" and Difficulty picking out salient information >= 2 ; "* may do best with a system that clearly shows what is next, such as disappearing icons or clearly marked items if using an icon based schedule" ) ;
If ( Symbolic Representation  ≠ "object symbolic of activity" and Symbolic Representation  ≠ "object used in activity" and Attempts to negotiate around schedule items >= 2 ; "* may respond well to controlled choice built into the schedule" ) ;
If ( Symbolic Representation  ≠ "object symbolic of activity" and Symbolic Representation  ≠ "object used in activity" and Fine motor deficits >=2 ; "* may need fine motor considerations for interaction with the schedule" ) ; )
;
Substitute ( phrases ; ¶ ; ", " )
)

 

 

Thanks in advance

Kathryn

Link to comment
Share on other sites

You seem to have a syntax error here:

If ( Symbolic Representation  ≠ "object symbolic of activity" and Symbolic Representation  ≠ "object used in activity" ;
Overwhelmed if too many items are on a list >=2 ; "* may like to see items diminish as they are completed using an icon-based schedule due to a tendency to be overwhelmed with multiple items" )

This will test the Symbolic Representation field to see that it doesn't equal to either "object symbolic of activity" nor "object used in activity". If this happens to be true, the function will then return the result of evaluating:

Overwhelmed if too many items are on a list >=2 

which can be either true (1) or false (0).

I presume you meant to write:

If ( Symbolic Representation  ≠ "object symbolic of activity" and Symbolic Representation  ≠ "object used in activity" and Overwhelmed if too many items are on a list >=2 ;
"* may like to see items diminish as they are completed using an icon-based schedule due to a tendency to be overwhelmed with multiple items"
) ;

BTW, it looks like you could take advantage of the Case() function in order to handle mutually exclusive cases, and thus avoid testing for the same thing more than once.

 

 

Link to comment
Share on other sites

This topic is 2819 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.