简体中文|English

丰普软件logo    
主页 关于丰普 产品 服务与支持 共享资源 联系我们
服务与支持
   ◆  PowerCATI服务
   ◆  PowerCATI升级说明
   ◆  PowerCATI升级预告
   ◆  问卷设计FAQ
您的位置:主页 > 服务与支持>问卷设计FAQ>示例
*number v1,v2,v3,v4,v5,v6,v7,v8,v9,v10,result,switch,result1,result2,result4,count
*number re1,re2,re3

*list brand
1:brand1 *number *save v1
2:brand2 *number *save v2
3:brand3 *number *save v3
4:brand4 *number *save v4
5:brand5 *number *save v5
6:brand6 *number *save v6
7:brand7 *number *save v7
8:brand8 *number *save v8
9:brand9 *number *save v9
10:brand10 *number *save v10

*list brand1
1:brand1 *if v1 = result
2:brand2 *if v2 = result
3:brand3 *if v3 = result
4:brand4 *if v4 = result
5:brand5 *if v5 = result
6:brand6 *if v6 = result
7:brand7 *if v7 = result
8:brand8 *if v8 = result
9:brand9 *if v9 = result
10:brand10 *if v10 = result

*q 1 *select *multi
brand question
*uselist brand

*set result = maxof[3,v1,v2,v3,v4,v5,v6,v7,v8,v9,v10]
*set result4 = maxof[4,v1,v2,v3,v4,v5,v6,v7,v8,v9,v10]
*set result2 = maxof[2,v1,v2,v3,v4,v5,v6,v7,v8,v9,v10]
*set result1 = maxof[1,v1,v2,v3,v4,v5,v6,v7,v8,v9,v10]

*if result = result4

*set count = 1

*if result = result2
*set count = 2
*endif

*if result = result1
*set count = 3
*endif


*set switch = 0

*if switch =0

** if the third result has other varialble ,show all the same value option and let agent select the left count
*q 2 *select *multi [count,count]
brand question [本题不需询问,根据选取规则,在所列出选项中选中$count个]
*uselist brand1

*set re1 = q2[3]
*set re2 = q2[2]
*set re3 = q2[1]

*else

** if the third result has other varialble ,random show the left count of the same value option and let agent select
them

*q 3 *select *multi [count,count] *srsel count
brand question [本题不需询问,只要将所列出选项都选中即可]
*uselist brand1

*set re1 = q3[3]
*set re2 = q3[2]
*set re3 = q3[1]

*endif

*endif

*text r1,r2,r3
*if re1 = 0
*set r1 = maxof[1,v1,v2,v3,v4,v5,v6,v7,v8,v9,v10]
*endif

*if re2 = 0
*set r2 = maxof[2,v1,v2,v3,v4,v5,v6,v7,v8,v9,v10]
*endif

*if re3 = 0
*set r3 = maxof[3,v1,v2,v3,v4,v5,v6,v7,v8,v9,v10]
*endif

*qg brand1 *if re1= 1 @ re2 = 1 @ re3 = = 1 @ r1= "v1" @ r2 = "v1" @ r3 = = "v1"
:v1
*endqg

*qg brand2 *if re1= 2 @ re2 = 2 @ re3 = = 2 @ r1= "v2" @ r2 = "v2" @ r3 = = "v2"
:
*endqg

*qg brand3 *if re1= 3 @ re2 = 3 @ re3 = = 3 @ r1= "v3" @ r2 = "v3" @ r3 = = "v3"
:
*endqg

*qg brand4 *if re1= 4 @ re2 = 4 @ re3 = = 4 @ r1= "v4" @ r2 = "v4" @ r3 = = "v4"
:
*endqg

*qg brand1 *if re1= 5 @ re2 = 5 @ re3 = = 5 @ r1= "v5" @ r2 = "v5" @ r3 = = "v5"
:
*endqg

*qg brand1 *if re1= 6 @ re2 = 6 @ re3 = = 6 @ r1= "v6" @ r2 = "v6" @ r3 = = "v6"
:
*endqg

*qg brand1 *if re1= 7 @ re2 = 7 @ re3 = = 7 @ r1= "v7" @ r2 = "v7" @ r3 = = "v7"
:
*endqg

*qg brand1 *if re1= 8 @ re2 = 8 @ re3 = = 8 @ r1= "v8" @ r2 = "v8" @ r3 = = "v8"
:
*endqg

*qg brand9 *if re1= 9 @ re2 = 9 @ re3 = = 9 @ r1= "v9" @ r2 = "v9" @ r3 = = "v9"
:
*endqg

*qg brand10 *if re1= 10 @ re2 = 10 @ re3 = = 10 @ r1= "v10" @ r2 = "v10" @ r3 = = "v10"
:
*endqg