简体   繁体   English

清晰的故事情节订购结果

[英]Articulate storyline Ordering Results

For an Articulate Storyline project I would like to order my results from High to Low and display only the top 5.对于 Articulate Storyline 项目,我想将结果从高到低排序,并仅显示前 5 个。

Does someone know how you can do this in Articulate Storyline or Javascript?有人知道如何在 Articulate Storyline 或 Javascript 中做到这一点吗?

You need to learn about:你需要了解:
1. Triggers. 1. 触发器。
2. Variables. 2. 变量。

1. You can use triggers to perform actions based on a condition - for example: 1.您可以使用触发器根据条件执行操作 - 例如:

Show image_1 on mouseover of button_1button_1鼠标悬停显示image_1

Simply attach the trigger to the object you want to be affected and choose which condition affects it.只需将触发器连接到您想要影响的对象并选择影响它的条件。

The triggers will execute in the same order they are placed in the trigger panel at the top right of the screen.触发器将按照它们在屏幕右上角的触发器面板中的相同顺序执行。

2. Now, about ordering the results, you will need to test if a result is bigger than the next result, and if it is, place it at the top of the list. 2.现在,关于对结果进行排序,您需要测试一个结果是否大于下一个结果,如果是,则将其放在列表的顶部。 For this you will need to assign each result to a variable .为此,您需要将每个结果分配给一个变量

在此处输入图片说明
There are 3 types of variable in Storyline:故事情节中有 3 种类型的变量:

  • Text文本
  • Number数字
  • True/False真假

You want Number as the results are numbers.你想要数字,因为结果是数字。

Now you have variables that represent each of your results, you need to test them against each other to determine the order from high to low.现在您有代表每个结果的变量,您需要相互测试它们以确定从高到低的顺序

You can display results as textboxes depending on their value using triggers to compare results.您可以使用触发器来比较结果,根据它们的值将结果显示为文本框。

Why my text variable are inverted in preview??? 为什么我的文本变量在预览中反转??? I am writing persian text. 我在写波斯文字。 For example : I am writing "زهرا" in input But my variable show "ارهز" in textbox in next slide 例如:我在输入中写了“زهرا”,但是我的变量在下一张幻灯片的文本框中显示了“ارهز”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM