params varFidelity, varCaseNumber, varMissileName
Log "My fidelity value is"&&varFidelty
Log "My case number is"&&varCaseNumber
Log "My missle name is"&&varMissleName
set myCodeString to "customApril.rhl08 -f"&&varCaseNumber&slash&"ini_files"&slash&varMissleName&".ini"
Log "My code string is"&&myCodeString
set my imagePath to slash&"case"&varCaseNumber&slash&varFidelity&slash&varMissleName&slash&"RollRate"
Log "My image path is"&&myImagePath
if ImageFound(image:(myImagePath)) then LogSuccess varFidelity&&varMissleName&&"is generated correctly."
//Slash is a predefined variable used when you want to call the punctuation and not the escape character
//If you are looking for an image in your Images folder that has a path based on passed parameters, //you will need to force SenseTalk to evaluate the path before it looks for the image
//placing myImagePath within parenthesis should resolve that issue.
maybe this proposal may help as well:
If varFidelty, varCaseNumber and varMissleName are variables you may log them with
log merge(“any text: [[varFidelty]], [[varCaseNumber]], [[varMissleName]]”).
means use the merge function and put your variables in [].
I tried it out Dave and it works perfectly! Thanks so much. It makes sense that I need to put those paths into a string that SenseTalk can understand and interpret when ready. Thank you for taking time out of your day to figure it out and write it down for me.